自动化立体仓库 - WMS系统
#
luxiaotao1123
2024-01-30 2e7a31b3e84c3e7ed0842b913402045ad99f255a
src/main/java/com/zy/asrs/utils/MatExcelListener.java
@@ -2,6 +2,7 @@
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.core.exception.CoolException;
@@ -135,6 +136,11 @@
                throw new CoolException("保存商品信息失败,物料号:" + excel.getMatnr());
            }
            total++;
        }else {
            mat = excel;
            mat.setTagId(tagId);
            matService.update(mat,new EntityWrapper<Mat>().eq("matnr",mat.getMatnr()));
            total++;
        }
    }