From 0f63c9e381eeefa2f7aceb7ed8d043ddd165afd5 Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期二, 10 六月 2025 15:33:05 +0800
Subject: [PATCH] feat(maint): 添加工单图片上传功能

---
 eims/ruoyi-modules/lb-eims/src/main/java/org/dromara/eims/listener/EimsEquImportListener.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/eims/ruoyi-modules/lb-eims/src/main/java/org/dromara/eims/listener/EimsEquImportListener.java b/eims/ruoyi-modules/lb-eims/src/main/java/org/dromara/eims/listener/EimsEquImportListener.java
index 2d62524..7f9b90c 100644
--- a/eims/ruoyi-modules/lb-eims/src/main/java/org/dromara/eims/listener/EimsEquImportListener.java
+++ b/eims/ruoyi-modules/lb-eims/src/main/java/org/dromara/eims/listener/EimsEquImportListener.java
@@ -7,6 +7,7 @@
 import com.alibaba.excel.exception.ExcelDataConvertException;
 import org.dromara.common.core.constant.CacheConstants;
 import org.dromara.common.core.constant.Constants;
+import org.dromara.common.core.constant.DictConstants;
 import org.dromara.common.core.exception.ServiceException;
 import org.dromara.common.core.service.DictService;
 import org.dromara.common.core.utils.DateUtils;
@@ -60,7 +61,7 @@
         this.dictService = SpringUtils.getBean(DictService.class);
         this.isUpdateSupport = isUpdateSupport;
         this.operUserId = LoginHelper.getUserId();
-        this.unitDictMap = dictService.getAllDictByDictType(CacheConstants.EIMS_EQU_UNIT);
+        this.unitDictMap = dictService.getAllDictByDictType(DictConstants.EIMS_EQU_UNIT);
     }
 
     @Override
@@ -92,6 +93,9 @@
                 EimsEquBo equ = BeanUtil.toBean(equVo, EimsEquBo.class);
                 // TODO 鏍¢獙
                 //ValidatorUtils.validate(equ);
+
+                //娣诲姞瀛楁榛樿灞炴��
+                equ.setImportStatus(dictService.getDictValue(DictConstants.EIMS_IMPORT_STATUS,"鏂板鍏�"));
                 equ.setCreateBy(operUserId);
                 equService.insertByBo(equ);
                 successNum++;
@@ -152,7 +156,7 @@
         if (exception instanceof ExcelDataConvertException) {
             ExcelDataConvertException excelDataConvertException = (ExcelDataConvertException) exception;
             log.error("绗瑊}琛岋紝绗瑊}鍒楄В鏋愬紓甯革紝鏁版嵁涓�:{}", excelDataConvertException.getRowIndex(),
-                excelDataConvertException.getColumnIndex(), excelDataConvertException.getCellData());
+                excelDataConvertException.getColumnIndex(), excelDataConvertException.getCellData().getData());
         }
     }
 

--
Gitblit v1.9.3