src/main/java/com/zy/common/task/GhlnWcsScheduler.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/zy/enums/AgvApi.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/zy/service/impl/MainServiceImpl.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/zy/common/task/GhlnWcsScheduler.java
@@ -12,6 +12,7 @@ import com.zy.entity.BasDevp; import com.zy.entity.WrkDetl; import com.zy.entity.WrkMast; import com.zy.enums.AgvApi; import com.zy.service.BasDevpService; import com.zy.service.WrkDetlService; import com.zy.service.WrkMastService; @@ -75,8 +76,8 @@ String response = ""; try { response = new HttpHandler.Builder() .setUri("http://192.168.204.44:8010") .setPath("/api/TaskCreat/AllowEntry") .setUri(AgvApi.OPEN_COMPLETE_PUSH.getURI()) .setPath(AgvApi.OPEN_COMPLETE_PUSH.getPath()) .setHeaders(headers) .setJson(body) .build() src/main/java/com/zy/enums/AgvApi.java
New file @@ -0,0 +1,42 @@ package com.zy.enums; /** * agv相关对接接口 */ public enum AgvApi { // wcs开门完成,通知agv取货放货 OPEN_COMPLETE_PUSH("http://192.168.204.44:8010","/api/TaskCreat/AllowEntry"); private String URI; private String path; public String getURI() { return URI; } public void setURI(String URI) { this.URI = URI; } public String getPath() { return path; } @Override public String toString() { return "AgvApi{" + "URI='" + URI + '\'' + ", path='" + path + '\'' + '}'; } public void setPath(String path) { this.path = path; } AgvApi(String URI, String path) { this.URI = URI; this.path = path; } } src/main/java/com/zy/service/impl/MainServiceImpl.java
@@ -227,8 +227,8 @@ .setJson(JSON.toJSONString(param)) .build() .doPost(); log.info("入库请求wms原始返回:" + response); JSONObject jsonObject = JSON.parseObject(response); log.info("组托wms返回:" + jsonObject); if (jsonObject.getInteger("code").equals(200)) { StartupDto dto = jsonObject.getObject("data", StartupDto.class); barcodeThread.setBarcode("");