销售订单添加自定义行号属性

- 在同步规则中为每个明细项添加自定义行号属性
- 新增 properties 字段,包含行号的 property- 行号属性的字段名为 vbillcode,值为 crowno
This commit is contained in:
张明 2025-05-21 17:06:41 +08:00
parent 2118f0e3b7
commit a1b5f52ae8
1 changed files with 8 additions and 0 deletions

View File

@ -192,6 +192,14 @@ public class AfterApprovingSynchronizeRuleMES implements IRule<SaleOrderVO> {
detailItem.put("customNo", null);
detailItem.put("customSN", null);
detailItem.put("remarks", null);
// 添加自定义行号
JSONArray properties = new JSONArray();
JSONObject property = new JSONObject();
// 行号
property.put("propertyFiled", head.getVbillcode());
property.put("propertyValue", body.getCrowno());
properties.add(property);
detailItem.put("properties", properties);
details.add(detailItem);
}
}