无关风月
12 小时以前 0a265c8c77cde1a2dd50e2e876b09326d7fc3d26
ruoyi-admin/src/main/java/com/ruoyi/web/controller/task/TaskUtil.java
@@ -10,6 +10,7 @@
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;
@@ -97,6 +98,8 @@
    @Resource
    private MsgUtils msgUtils;
    @Resource
    private TemplateMessageSendUtil templateMessageSendUtil;
    @Resource
    private TDictDataService dictDataService;
    @Scheduled(cron = "0 0 20 * * ?")
    public void dayOfEarlyWarning() {
@@ -154,6 +157,13 @@
                                }
                                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;
                        }
                    }