流程生产订单: 调整生产订单同步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

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