From 196bb14112448857a885e32dc4149e308e00b01a Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 15 八月 2024 11:57:15 +0800
Subject: [PATCH] 2024.8.15 各项修正

---
 src/main/kotlin/cn/flightfeather/supervision/bgtask/TaskLedgerRemind.kt |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/timingtask/TaskLedgerRemind.kt b/src/main/kotlin/cn/flightfeather/supervision/bgtask/TaskLedgerRemind.kt
similarity index 93%
rename from src/main/kotlin/cn/flightfeather/supervision/timingtask/TaskLedgerRemind.kt
rename to src/main/kotlin/cn/flightfeather/supervision/bgtask/TaskLedgerRemind.kt
index b8ac686..0ad5b59 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/timingtask/TaskLedgerRemind.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/bgtask/TaskLedgerRemind.kt
@@ -1,9 +1,8 @@
-package cn.flightfeather.supervision.timingtask
+package cn.flightfeather.supervision.bgtask
 
 import cn.flightfeather.supervision.common.wx.TemplateManager
 import cn.flightfeather.supervision.domain.entity.LedgerSubType
 import cn.flightfeather.supervision.domain.entity.MsgSubscribeWx
-import cn.flightfeather.supervision.domain.enumeration.SceneType
 import cn.flightfeather.supervision.domain.mapper.LedgerSubTypeMapper
 import cn.flightfeather.supervision.domain.mapper.MsgSubscribeWxMapper
 import cn.flightfeather.supervision.domain.mapper.UserInfoWxMapper
@@ -83,7 +82,8 @@
             if (mustCount < mustTotal) {
                 val leftDay = 10 - localtime.dayOfMonth
                 templateManager.sendMsg(0, it!!.msOpenId,
-                    listOf("鍙拌处涓婁紶", "${localtime.year}骞�${localtime.monthValue}鏈�10鏃�", leftDay.toString(), "璇烽噸鐐瑰叧娉ㄧ幇鍦鸿嚜瀵绘煡閮ㄥ垎"))
+                    listOf("鍙拌处涓婁紶", "${localtime.year}骞�${localtime.monthValue}鏈�10鏃�", leftDay.toString(),
+                        "璇烽噸鐐瑰叧娉ㄧ幇鍦鸿嚜宸℃煡閮ㄥ垎"))
                 count++
             }
         }
@@ -96,8 +96,9 @@
      */
     override fun execute(localtime: LocalDateTime) {
         if (localtime.dayOfMonth == 5 || localtime.dayOfMonth == 9) {
-            doTask(localtime)
-
+            if (localtime.hour == 10 && localtime.minute == 0 && localtime.second == 0) {
+                doTask(localtime)
+            }
         }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3