feiyu02
2024-08-15 196bb14112448857a885e32dc4149e308e00b01a
src/main/kotlin/cn/flightfeather/supervision/bgtask/TaskLedgerRemind.kt
ÎļþÃû´Ó src/main/kotlin/cn/flightfeather/supervision/timingtask/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)
            }
        }
    }
}