From 93f04a4dba7d36da1148f93a64a779377756d7c0 Mon Sep 17 00:00:00 2001 From: chen <2710907404@qq.com> Date: Mon, 14 Jul 2025 14:23:12 +0800 Subject: [PATCH] =?UTF-8?q?20250714=20=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entrustment/service/impl/ExcelOperationServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/digital/laboratory/platform/entrustment/service/impl/ExcelOperationServiceImpl.java b/src/main/java/digital/laboratory/platform/entrustment/service/impl/ExcelOperationServiceImpl.java index 5db7066..2308b4d 100644 --- a/src/main/java/digital/laboratory/platform/entrustment/service/impl/ExcelOperationServiceImpl.java +++ b/src/main/java/digital/laboratory/platform/entrustment/service/impl/ExcelOperationServiceImpl.java @@ -19,6 +19,7 @@ import digital.laboratory.platform.entrustment.vo.EntrustmentVO; import digital.laboratory.platform.sys.entity.DrugLite; import digital.laboratory.platform.sys.enums.entrust.EntrustBiologyType; import digital.laboratory.platform.sys.feign.RemoteCommDrugService; +import lombok.extern.slf4j.Slf4j; import org.apache.poi.ss.usermodel.*; import org.apache.poi.ss.util.CellRangeAddress; import org.apache.poi.xssf.streaming.SXSSFWorkbook; @@ -47,6 +48,7 @@ import java.util.stream.Collectors; * @description: excel上传服务层接口 实现类 * @date 2025/4/16 11:55 */ +@Slf4j @Service public class ExcelOperationServiceImpl implements ExcelOperationService { @@ -220,7 +222,8 @@ public class ExcelOperationServiceImpl implements ExcelOperationService { ); if (CollUtil.isEmpty(entrustmentVOList)) { - throw new CheckedException(String.format("当前用户机构 [%s] 无委托信息!", user.getOrgName())); + log.warn("当前用户机构无委托信息!"); + return; } // 获取检材信息