From 2ab727eb8a56077d9ad52112a9c8e97010b84b6d Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期一, 09 六月 2025 19:50:49 +0800 Subject: [PATCH] feat(eims): 优化保养计划和点检记录功能 --- 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