| | |
| | | return response; |
| | | } |
| | | |
| | | public Response stopTask(WmsTaskStopDto stopDto) { |
| | | String httpUrl = "http://192.168.10.133:8051"+"/api/wms_task/inbound"; |
| | | Response response = HttpUtil.doPost(httpUrl, JsonUtil.getGson().toJson(stopDto)); |
| | | //对结果进行处理 |
| | | if(response.getCode() == 1){ //请求成功,data有正常数据 |
| | | String dataStr = (String) response.getData(); |
| | | WmsResponseTaskStopDto responseInside = JsonUtil.getGson().fromJson(dataStr, WmsResponseTaskStopDto.class); |
| | | response.set(1,responseInside); |
| | | /*if(responseInside.getCode() ==0) { |
| | | |
| | | }*/ |
| | | } |
| | | return response; |
| | | } |
| | | |
| | | public Response getLocationList() { |
| | | String httpUrl = "http://192.168.10.133:8051"+"/api/wms_location/get_all"; |
| | | Response response = HttpUtil.doGet(httpUrl, (String) null); |