| | |
| | | import com.ruoyi.system.mapper.TCleanerMapper; |
| | | import com.ruoyi.system.model.*; |
| | | import com.ruoyi.system.service.*; |
| | | import com.ruoyi.system.utils.TemplateMessageSendUtil; |
| | | import com.ruoyi.web.controller.tool.EmailUtils; |
| | | import com.ruoyi.web.controller.tool.MsgUtils; |
| | | import javafx.concurrent.Task; |
| | |
| | | @Resource |
| | | private MsgUtils msgUtils; |
| | | @Resource |
| | | private TemplateMessageSendUtil templateMessageSendUtil; |
| | | @Resource |
| | | private TDictDataService dictDataService; |
| | | @Scheduled(cron = "0 0 20 * * ?") |
| | | public void dayOfEarlyWarning() { |
| | |
| | | } |
| | | break; |
| | | case 3: |
| | | if (StringUtils.hasLength(sysUser.getOpenId())){ |
| | | Date date = new Date(); |
| | | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm"); |
| | | String format = simpleDateFormat.format(date); |
| | | templateMessageSendUtil.wxTemplateDayWorkRequest(sysUser.getOpenId(), |
| | | count+"",format); |
| | | } |
| | | break; |
| | | } |
| | | } |