From 53bf1e11c46964e15ab2d334457066ed3b68c98d Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期五, 06 六月 2025 12:57:57 +0800 Subject: [PATCH] refactor(lb-eims):调整代码和更新配置- 注释掉 EimsEquImportVo 中的 @ExcelProperty 注解 - 优化 EimsEquImportListener 中的异常日志输出- 更新 snailjob 监控页面的 iframe 源地址- 修改移动端项目的 API 基础 URL - 优化移动端页面跳转逻辑 - 改进维修请求列表的接单操作流程 --- 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