Commit 1c74faab authored by 季圣华's avatar 季圣华
Browse files

解决商品导入的bug

parent 2f7b0961
......@@ -425,10 +425,9 @@ public class MaterialService {
m.setEnabled(enabled.equals("1")? true: false);
//缓存各个仓库的库存信息
Map<Long, BigDecimal> stockMap = new HashMap<Long, BigDecimal>();
int depotSize = depotCount>10? 10: depotCount; //excel里面的仓库数量
for(int j=1; j<=depotSize;j++) {
for(int j=1; j<=depotCount;j++) {
int col = 15+j;
if(col <= src.getColumns()){
if(col < src.getColumns()){
String depotName = ExcelUtils.getContent(src, 1, col); //获取仓库名称
Long depotId = depotService.getIdByName(depotName);
if(depotId!=0L){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment