From a1b5f52ae88f4587d28b4d54ea9ce824a1ab0111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=98=8E?= <125556714+Topfunplus@users.noreply.github.com> Date: Wed, 21 May 2025 17:06:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=80=E5=94=AE=E8=AE=A2=E5=8D=95=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89=E8=A1=8C=E5=8F=B7=E5=B1=9E?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在同步规则中为每个明细项添加自定义行号属性 - 新增 properties 字段,包含行号的 property- 行号属性的字段名为 vbillcode,值为 crowno --- .../rule/approve/AfterApprovingSynchronizeRuleMES.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/so/src/private/nc/bs/so/m30/rule/approve/AfterApprovingSynchronizeRuleMES.java b/so/src/private/nc/bs/so/m30/rule/approve/AfterApprovingSynchronizeRuleMES.java index de469ed..583abdc 100644 --- a/so/src/private/nc/bs/so/m30/rule/approve/AfterApprovingSynchronizeRuleMES.java +++ b/so/src/private/nc/bs/so/m30/rule/approve/AfterApprovingSynchronizeRuleMES.java @@ -192,6 +192,14 @@ public class AfterApprovingSynchronizeRuleMES implements IRule { 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); } }