【泛微接口】物料流程接口

This commit is contained in:
tanfengling@x-ri.com 2025-11-05 11:37:00 +08:00
parent aca5bde1aa
commit 6f88e448d1
1 changed files with 9 additions and 9 deletions

View File

@ -5358,24 +5358,24 @@ public class FWImpl {
}else if ("5".equals(materialtype)){
wllx = "特征件";
}
String ywzxdx = "";
String ywzx = "";
DynamicObjectCollection serviceattribute = bill.getDynamicObjectCollection("serviceattribute");
for (DynamicObject attribute : serviceattribute) {
long id = attribute.getLong("fbasedataid.id");
attribute = BusinessDataServiceHelper.loadSingle(id, "bd_serviceattribute", "id,name,number,operatorid");
String number = attribute.getString("number");
if(number.contains("1001")){
ywzxdx = ywzxdx + ",0";
ywzx = ywzx + ",0";
}else if (number.equals("2001")){
ywzxdx = ywzxdx + ",1";
ywzx = ywzx + ",1";
}else if (number.equals("2002")){
ywzxdx = ywzxdx + ",2";
ywzx = ywzx + ",2";
}else if (number.equals("2003")){
ywzxdx = ywzxdx + ",3";
ywzx = ywzx + ",3";
}
}
if(StringUtils.isNotBlank(ywzxdx)){
ywzxdx = ywzxdx.substring(1);
if(StringUtils.isNotBlank(ywzx)){
ywzx = ywzx.substring(1);
}
String ym = bill.getString("tqq9_ym");
String ssbm = null;
@ -5502,8 +5502,8 @@ public class FWImpl {
m27.put("fieldName", "wllx");
m27.put("fieldValue", wllx);
JSONObject m28 = new JSONObject();
m28.put("fieldName", "ywzxdx");
m28.put("fieldValue", ywzxdx);
m28.put("fieldName", "ywzx");
m28.put("fieldValue", ywzx);
JSONObject m29 = new JSONObject();
m29.put("fieldName", "ym");
m29.put("fieldValue", ym);