feat(pmo): 真空MES-工单接口-增加工单id

This commit is contained in:
mzr 2025-11-22 10:03:40 +08:00
parent 7de733be00
commit 7abb34d9e3
1 changed files with 3 additions and 1 deletions

View File

@ -85,6 +85,7 @@ public class AfterPmoSyncZkMesRule implements IRule<PMOAggVO> {
} }
PMOHeadVO pmoHeadVO = vo.getParentVO(); PMOHeadVO pmoHeadVO = vo.getParentVO();
PMOItemVO[] itemVOS = vo.getChildrenVO(); PMOItemVO[] itemVOS = vo.getChildrenVO();
String cpmohid = pmoHeadVO.getCpmohid();
String vbillcode = pmoHeadVO.getVbillcode(); String vbillcode = pmoHeadVO.getVbillcode();
UFDate dbilldate = pmoHeadVO.getDbilldate(); UFDate dbilldate = pmoHeadVO.getDbilldate();
// 组装数据 // 组装数据
@ -106,7 +107,8 @@ public class AfterPmoSyncZkMesRule implements IRule<PMOAggVO> {
JSONObject itemObj = new JSONObject(); JSONObject itemObj = new JSONObject();
itemObj.put("WorkOrderNo", vbillcode);// 工单号 itemObj.put("WorkOrderNo", vbillcode);// 工单号
itemObj.put("SendDate", SendDate);// 接收日期 itemObj.put("SendDate", SendDate);// 接收日期
itemObj.put("ERPOrderCode", item.getCmoid());// ERP的工单ID itemObj.put("ERPOrderCode", item.getCmoid());// ERP的工单行ID
itemObj.put("orderId", cpmohid);// ERP的工单ID
itemObj.put("OrderNum", item.getNastnum().toString());// 工单数量 itemObj.put("OrderNum", item.getNastnum().toString());// 工单数量
itemObj.put("materialvid", materialCode);// 物料编码 itemObj.put("materialvid", materialCode);// 物料编码
itemObj.put("unitid", unitCode);// 计量单位编码 itemObj.put("unitid", unitCode);// 计量单位编码