#
lsh
2024-09-09 bb99f3d2bd880fc4bea36efa8f9fb041b483f279
zy-asrs-common/src/main/java/com/zy/asrs/common/utils/MatExcelListener.java
@@ -140,6 +140,16 @@
                throw new CoolException("保存商品信息失败,商品编码:" + excel.getMatnr());
            }
            total++;
        }else {
            matService.removeById(mat.getId());
            mat = excel;
            mat.setTagId(tagId);
            mat.setHostId(hostId);
            if (!matService.save(mat)) {
                throw new CoolException("保存商品信息失败,商品编码:" + excel.getMatnr());
            }
            total++;
        }
    }