feat(SO): 同步销售订单时新增订单类型编码和主键信息

- 在 AfterApprovingSynchronizeRuleMES 类中添加了三个新的字段属性:
  -销售订单交易类型编码 (SXZF19)
  - 销售订单主键 (SXZF20)
  - 销售订单子表主键 (SXZF21)
- 这些新属性将增强与 MES 系统的同步信息,提高数据集成的准确性
This commit is contained in:
张明 2025-05-29 08:49:21 +08:00
parent d7cb1f7ff9
commit 7b0d64895d
1 changed files with 15 additions and 0 deletions

View File

@ -208,7 +208,22 @@ public class AfterApprovingSynchronizeRuleMES implements IRule<SaleOrderVO> {
// ÐкŠ// ÐкÅ
property.put("propertyFiled", "SXZF15"); property.put("propertyFiled", "SXZF15");
property.put("propertyValue", body.getCsaleorderbid()); property.put("propertyValue", body.getCsaleorderbid());
// 劤藤힛몸俚뙈橄昑 饋簡땐데슥弄잚謹긍쯤
JSONObject property1 = new JSONObject();
JSONObject property2 = new JSONObject();
JSONObject property3 = new JSONObject();
property1.put("propertyFiled", "SXZF19");
property1.put("propertyValue", head.getVtrantypecode()); // 땐데잚謹긍쯤
// 饋簡땐데寮숩
property2.put("propertyFiled", "SXZF20");
property2.put("propertyValue", head.getCsaleorderid()); // 깊庫寮숩
// // 饋簡땐데綾깊寮숩
// property3.put("propertyFiled", "SXZF21");
// property3.put("propertyValue", body.getCsaleorderbid()); // 깊竟寮숩
properties.add(property); properties.add(property);
properties.add(property1);
properties.add(property2);
properties.add(property3);
detailItem.put("properties", properties); detailItem.put("properties", properties);
details.add(detailItem); details.add(detailItem);
} }