whycxzp
2025-04-23 c330e65b8ea172fface685efaa8e9c2e8a7f9520
src/main/java/com/whyc/service/WmsService.java
@@ -125,6 +125,21 @@
        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);