fix(导入到SAP): 数量(BigDecimal类型)转字符串时,使用更安全的toPlainString方法避免生成科学计数法表示

This commit is contained in:
曹鹏飞 2024-09-18 09:29:27 +08:00
parent 00ef7c7bdb
commit 293c41b5ac
3 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ public class BomNewEbomExportToSAP {
T1ExtDTO t = new T1ExtDTO();
t.setID(RandomUtil.randomNumbers(5));
t.setMATNR(p.getMaterialNo());
t.setMENGE(child.getNum().toString());
t.setMENGE(child.getNum().toPlainString());
t.setPOSTP(child.getProjectType());
t.setDATUM(dateYMD);
t.setMEINS(child.getMaterialUnit());

View File

@ -256,7 +256,7 @@ public class BomNewPbomExportToSAPImpl implements IBomNewPbomExportToSAP {
T1ExtDTO t = new T1ExtDTO();
t.setID(RandomUtil.randomNumbers(5));
t.setMATNR(p.getMaterialNo());
t.setMENGE(child.getNum().toString());
t.setMENGE(child.getNum().toPlainString());
t.setPOSTP(child.getProjectType());
t.setDATUM(dateYMD);
t.setMEINS(child.getMaterialUnit());

View File

@ -412,7 +412,7 @@ public class DQBomService {
T1ExtDTO t1 = new T1ExtDTO();
t1.setID(RandomUtil.randomNumbers(5));
t1.setMATNR(d.getParentMaterialNo());
t1.setMENGE(d.getNum().toString());
t1.setMENGE(d.getNum().toPlainString());
t1.setPOSTP(d.getProjectType());
t1.setDATUM(dateYMD);