销售订单修改接口-新增物料行自定义项字段处理

This commit is contained in:
mzr 2025-04-24 15:48:07 +08:00
parent c444d4c01f
commit e64926cd6e
1 changed files with 12 additions and 0 deletions

View File

@ -1145,6 +1145,18 @@ public class APISaleOrderMaitainImpl implements IAPISaleOrderMaitain {
UFDouble nastnum = nnum.multiply(measrateNum).setScale(2, UFDouble.ROUND_HALF_UP); UFDouble nastnum = nnum.multiply(measrateNum).setScale(2, UFDouble.ROUND_HALF_UP);
newBvo.setNastnum(nastnum);// 数量 newBvo.setNastnum(nastnum);// 数量
newBvo.setNqtunitnum(nastnum);// 报价单位数量 newBvo.setNqtunitnum(nastnum);// 报价单位数量
// 自定义项赋值
String vbdef1 = bodydata.getOrDefault("vbdef1","") + "";// 合同编号
Map<String, String> defList = getDefList("zdy-001");
newBvo.setVbdef1(defList.getOrDefault(vbdef1, ""));
String vbdef5 = bodydata.getOrDefault("vbdef5","") + "";// 合同销售订单号
defList.clear();
defList = getDefList("BIP-ddh");
newBvo.setVbdef5(defList.getOrDefault(vbdef5, ""));
newBvo.setVbdef10(bodydata.getOrDefault("vbdef10","") + "");// 项目名称
newBvo.setVbdef13(bodydata.getOrDefault("vbdef13","") + "");// 国网行项目号
bvoList.add(newBvo); bvoList.add(newBvo);
} }
} }