ÎļþÃû´Ó src/main/kotlin/cn/flightfeather/supervision/timingtask/TaskLedgerRemind.kt ÐÞ¸Ä |
| | |
| | | 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 |
| | |
| | | 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++ |
| | | } |
| | | } |
| | |
| | | */ |
| | | 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) |
| | | } |
| | | } |
| | | } |
| | | } |