流程生产订单: 调整生产订单同步MES中的属性值

- 将上级生产订单号(SXZF16)改为项目主键
- 将上级生产订单行号(SXZF17)改为单据行号
- 优化了代码格式,增加了注释和空行
This commit is contained in:
maolei 2025-06-04 09:55:28 +08:00
parent 13fbf46634
commit 9726246ed0
1 changed files with 8 additions and 7 deletions

View File

@ -335,11 +335,11 @@ public class AfterApproveRuleSyncMes implements IRule<PMOAggVO> {
private JSONArray buildProperties(PMOHeadVO head, PMOItemVO item) { private JSONArray buildProperties(PMOHeadVO head, PMOItemVO item) {
JSONArray properties = new JSONArray(); JSONArray properties = new JSONArray();
// SXZF16 - 上级生产订单号 // SXZF16 - 项目主键
addProperty(properties, "SXZF16", item.getVparentbillcode()); addProperty(properties, "SXZF16", item.getCprojectid());
// SXZF17 - 上级生产订单行号 // SXZF17 - 行号
addProperty(properties, "SXZF17", item.getVparentmorowno()); addProperty(properties, "SXZF17", item.getVrowno());
// SXZF18 - 生产订单交易类型编码 // SXZF18 - 生产订单交易类型编码
addProperty(properties, "SXZF18", head.getVtrantypecode()); addProperty(properties, "SXZF18", head.getVtrantypecode());
@ -353,6 +353,7 @@ public class AfterApproveRuleSyncMes implements IRule<PMOAggVO> {
// SXZF24 - 生产订单明细主键 // SXZF24 - 生产订单明细主键
addProperty(properties, "SXZF24", item.getCmoid()); addProperty(properties, "SXZF24", item.getCmoid());
return properties; return properties;
} }