From 8d02b5bba80e9625a28910ab9af3732f0a78cde2 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 11 八月 2023 14:14:20 +0800 Subject: [PATCH] 1 --- src/main/java/com/yssh/service/XlsReportService.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yssh/service/XlsReportService.java b/src/main/java/com/yssh/service/XlsReportService.java index 4faf106..f18a1b2 100644 --- a/src/main/java/com/yssh/service/XlsReportService.java +++ b/src/main/java/com/yssh/service/XlsReportService.java @@ -279,7 +279,7 @@ double qntq = mapper.selectAccumulate(lastYearMonthStart, lastYearMonthEnd, name); // 鍘诲勾鍚屾湡 String ytq = 0 == qntq ? "--" : CalculateUtils.round2((sy - qntq) / qntq * 100) + "%"; // 鏈堝悓鏈� - String ytb = ""; // 鏈堝悓姣� + String ytb = 0 == qntq ? "--" : CalculateUtils.round2((sy - qntq) / qntq * 100) + "%"; // 鏈堝悓姣� double lj = mapper.selectAccumulate(yearStart, intMonthEnd, name); // 绱 @@ -296,7 +296,8 @@ list.add(new MonthExcel("" + sy, yhb, ytq, ytb, "" + lj, ljtb, qyn, ys, "", "", "")); } - //saveResult("month", end, list); + saveResult("month", monthEnd, list); + } catch (Exception ex) { logger.error(ex.getMessage(), ex); } -- Gitblit v1.9.3