解决导入明细接口的数值精度的bug

This commit is contained in:
jishenghua
2025-06-06 20:49:20 +08:00
parent 953507839e
commit d32a8ff517
3 changed files with 21 additions and 4 deletions

View File

@@ -1023,7 +1023,7 @@ public class DepotItemController {
if("CGDD".equals(prefixNo) || "XSDD".equals(prefixNo)) {
barCode = ExcelUtils.getContent(src, i, 0);
num = ExcelUtils.getContent(src, i, 2);
unitPrice = ExcelUtils.getContent(src, i, 3);
unitPrice = ExcelUtils.getContentNumber(src, i, 3);
taxRate = ExcelUtils.getContent(src, i, 4);
remark = ExcelUtils.getContent(src, i, 5);
}
@@ -1031,7 +1031,7 @@ public class DepotItemController {
depotName = ExcelUtils.getContent(src, i, 0);
barCode = ExcelUtils.getContent(src, i, 1);
num = ExcelUtils.getContent(src, i, 3);
unitPrice = ExcelUtils.getContent(src, i, 4);
unitPrice = ExcelUtils.getContentNumber(src, i, 4);
taxRate = ExcelUtils.getContent(src, i, 5);
remark = ExcelUtils.getContent(src, i, 6);
}
@@ -1039,7 +1039,7 @@ public class DepotItemController {
depotName = ExcelUtils.getContent(src, i, 0);
barCode = ExcelUtils.getContent(src, i, 1);
num = ExcelUtils.getContent(src, i, 3);
unitPrice = ExcelUtils.getContent(src, i, 4);
unitPrice = ExcelUtils.getContentNumber(src, i, 4);
remark = ExcelUtils.getContent(src, i, 5);
}
Map<String, String> materialMap = new HashMap<>();