From d9df4df5fae06fad27a5199d2c8e0e6571b7a9ee Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 22 三月 2024 12:00:50 +0800 Subject: [PATCH] 1 --- src/main/java/com/yssh/config/ScheduleConfig.java | 2 ++ src/main/java/com/yssh/service/EmailService.java | 18 +++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/yssh/config/ScheduleConfig.java b/src/main/java/com/yssh/config/ScheduleConfig.java index 07cd7fe..4d60e56 100644 --- a/src/main/java/com/yssh/config/ScheduleConfig.java +++ b/src/main/java/com/yssh/config/ScheduleConfig.java @@ -246,7 +246,9 @@ public void autoCalcData() { if (enableEmail) { //System.out.println("${email.times}"); + logger.info("***************** 寮�濮嬫暟鎹璀﹁绠� *****************" + "\n"); emailService.calcData(); + logger.info("***************** 鏁版嵁棰勮璁$畻瀹屾垚 *****************" + "\n"); } } } diff --git a/src/main/java/com/yssh/service/EmailService.java b/src/main/java/com/yssh/service/EmailService.java index f4eddaf..09a4457 100644 --- a/src/main/java/com/yssh/service/EmailService.java +++ b/src/main/java/com/yssh/service/EmailService.java @@ -144,15 +144,15 @@ String[] strs = names.split(","); int count = countCsv(bigPath, hours); if (0 == count) { - list.add(strs[0] + "杩�" + hours + "灏忔椂瀛樺湪鏂囦欢缂哄け锛�"); + list.add(strs[0]); } count = countCsv(filePath, hours); if (0 == count) { - list.add(strs[1] + "杩�" + hours + "灏忔椂瀛樺湪鏂囦欢缂哄け锛�"); + list.add(strs[1]); } count = countCsv(vocPath, hours); if (0 == count) { - list.add(strs[2] + "杩�" + hours + "灏忔椂瀛樺湪鏂囦欢缂哄け锛�"); + list.add(strs[2]); } Calendar calendar = getCalendar(0); @@ -164,28 +164,28 @@ count = qxshMapper.countGcsjByTime(iStart, iEnd); if (0 == count) { - list.add(strs[3] + "杩�" + hours + "灏忔椂瀛樺湪鏁版嵁缂哄け"); + list.add(strs[3]); } count = qxshMapper.countQxshByTime(iStart, iEnd); if (0 == count) { - list.add(strs[4] + "杩�" + hours + "灏忔椂瀛樺湪鏁版嵁缂哄け"); + list.add(strs[4]); } count = qxshMapper.countSuYuan46ByTime(sStart, sEnd); if (0 == count) { - list.add(strs[5] + "杩�" + hours + "灏忔椂瀛樺湪鏁版嵁缂哄け"); + list.add(strs[5]); } count = qxshMapper.countSuYuan70ByTime(sStart, sEnd); if (0 == count) { - list.add(strs[6] + "杩�" + hours + "灏忔椂瀛樺湪鏁版嵁缂哄け"); + list.add(strs[6]); } count = qxshMapper.countSuYuanFastByTime(sStart, sEnd); if (0 == count) { - list.add(strs[7] + "杩�" + hours + "灏忔椂瀛樺湪鏁版嵁缂哄け"); + list.add(strs[7]); } int size = list.size(); if (size > 0) { - String text = String.join("锛�", list.toArray(new String[list.size()])) + "銆�"; + String text = String.join("銆�", list.toArray(new String[list.size()])) + "锛岃繎" + hours + "灏忔椂鍐呭瓨鍦ㄦ暟鎹己澶便��"; send(title, text); } -- Gitblit v1.9.3