From d1963b1046b1b5d9b32aa27204c3cda5311a0ec4 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期三, 29 五月 2024 13:15:30 +0800 Subject: [PATCH] # 再次拣料订单数量优化 --- src/main/java/com/zy/asrs/utils/MatExcelListener.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/utils/MatExcelListener.java b/src/main/java/com/zy/asrs/utils/MatExcelListener.java index a16e06d..6f29fc9 100644 --- a/src/main/java/com/zy/asrs/utils/MatExcelListener.java +++ b/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++; } } -- Gitblit v1.9.1