From 2446689dea168647180641c3bd935a4ca38e3a4c Mon Sep 17 00:00:00 2001 From: bobol Date: Wed, 13 Dec 2023 15:38:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=88=E6=8C=87=E6=A0=87=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/lzbi/draft/service/ReportService.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lzbi-module/src/main/java/com/lzbi/draft/service/ReportService.java b/lzbi-module/src/main/java/com/lzbi/draft/service/ReportService.java index b067adb..ae4c1fd 100644 --- a/lzbi-module/src/main/java/com/lzbi/draft/service/ReportService.java +++ b/lzbi-module/src/main/java/com/lzbi/draft/service/ReportService.java @@ -14,7 +14,6 @@ import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.lang.reflect.Field; import java.util.List; -import java.util.concurrent.CompletableFuture; import java.util.concurrent.CountDownLatch; @Slf4j @@ -36,7 +35,7 @@ public class ReportService { TargetDraftMonthReportReq req = JSONObject.parseObject(JSONObject.toJSONString(targetDraftMonthReportReq), TargetDraftMonthReportReq.class); req.setTargetModelCode(targetModelCode); List targetDraftMonthReportValueDTOS = dcBusiTargetDraftMonthMapper.selectTargetDraftMonthReportValue(req); - log.info("{} 执行完成,结果是 {}", targetModelCode, JSONArray.toJSONString(targetDraftMonthReportValueDTOS)); + log.info("{} 执行完成,结果是 {}", targetModelCode, targetDraftMonthReportValueDTOS); for (int i = 0, len = list.size(); i < len; i++) { TargetDraftMonthReportVO targetDraftMonthReportVO = list.get(i); for (int j = targetDraftMonthReportValueDTOS.size() - 1; j >= 0; j--) { @@ -48,9 +47,7 @@ public class ReportService { declaredField.setAccessible(true); } declaredField.set(targetDraftMonthReportVO, targetDraftMonthReportValueDTO.getValue()); - } catch (NoSuchFieldException e) { - throw new RuntimeException(e); - } catch (IllegalAccessException e) { + } catch (NoSuchFieldException | IllegalAccessException e) { throw new RuntimeException(e); } targetDraftMonthReportValueDTOS.remove(j);