mes接口更新

This commit is contained in:
loujf
2022-11-10 22:35:22 +08:00
parent 596843c34b
commit 405b0a0392
3 changed files with 8 additions and 4 deletions

View File

@@ -286,7 +286,9 @@ public class WmsToJnServiceImpl implements WmsToJnService {
}
String method = "/InsertPressInfo";
String task_id = (String) whereJson.get("task_id");
String next_point_code = (String) whereJson.get("next_point_code");
JSONObject jsonObject = WQL.getWO("WMSTOJN_001").addParam("flag", "1").addParam("task_id", task_id).process().uniqueResult(0);
jsonObject.put("LOCDESC",next_point_code);
JSONObject obj = new JSONObject();
obj.put("ticker", "WLXT");
obj.put("stringData", jsonObject.toString());

View File

@@ -15,6 +15,7 @@
#################################################
输入.flag TYPEAS s_string
输入.task TYPEAS s_string
输入.task_id TYPEAS s_string
输入.record_id TYPEAS s_string
输入.vehicle_code TYPEAS s_string

View File

@@ -122,20 +122,21 @@ public class SendMaterialTask extends AbstractAcsTask {
startPointObj.put("vehicle_code", "");
pointTab.update(startPointObj);
taskTab.update(jsonTask);
String point_type = endpointObj.getString("point_type");
String area_type = endpointObj.getString("area_type");
//1压机下料货架调用接口反馈给嘉耐 搬运任务
//2是出窑缓存货架调用反馈入冷却缓冲区
//3是木托盘缓存货架调用反馈半木托入临时库区
JSONObject jo = new JSONObject();
jo.put("task_id", task_id);
jo.put("next_point_code", jsonTask.getString("next_point_code"));
WmsToJnServiceImpl wmsToJnServiceImpl = new WmsToJnServiceImpl();
if (StrUtil.equals(point_type,AreaEnum.RYHCHJ.getCode())){
if (StrUtil.equals(area_type,AreaEnum.RYHCHJ.getCode())){
wmsToJnServiceImpl.feedBackCarryRecord(jo);
}
if (StrUtil.equals(point_type,AreaEnum.CYHCHJ.getCode())){
if (StrUtil.equals(area_type,AreaEnum.CYHCHJ.getCode())){
wmsToJnServiceImpl.feedBackInWait(jo);
}
if (StrUtil.equals(point_type,AreaEnum.MTPQ.getCode())){
if (StrUtil.equals(area_type,AreaEnum.MTPQ.getCode())){
wmsToJnServiceImpl.feedBackInPartStock(jo);
}