解决仓库初始库存不能导入的bug

This commit is contained in:
jishenghua
2024-11-01 23:21:24 +08:00
parent 9334f73b40
commit bb7f9d02bc

View File

@@ -880,7 +880,7 @@ public class MaterialService {
private Map<Long, BigDecimal> getStockMapCache(Sheet src, int depotCount, Map<String, Long> depotMap, int i) throws Exception { private Map<Long, BigDecimal> getStockMapCache(Sheet src, int depotCount, Map<String, Long> depotMap, int i) throws Exception {
Map<Long, BigDecimal> stockMap = new HashMap<>(); Map<Long, BigDecimal> stockMap = new HashMap<>();
for(int j = 1; j<= depotCount; j++) { for(int j = 1; j<= depotCount; j++) {
int col = 25 + j; int col = 26 + j;
if(col < src.getColumns()){ if(col < src.getColumns()){
String depotName = ExcelUtils.getContent(src, 1, col); //获取仓库名称 String depotName = ExcelUtils.getContent(src, 1, col); //获取仓库名称
if(StringUtil.isNotEmpty(depotName)) { if(StringUtil.isNotEmpty(depotName)) {