yuliang 5 年 前
コミット
0331ac7552

+ 1 - 1
whepi-web/src/main/java/com/bofeng/controller/EpiAdminController.java

@@ -79,7 +79,7 @@ public class EpiAdminController {
         System.out.println("==============执行定时任务完毕================");
     }
 
-    @Scheduled(cron = "0 0 19 * * ?") //每天19点执行一次
+    @Scheduled(cron = "0 10 20 * * ?") //每天19点执行一次
     public void scheduledTaskByFixedDelay2() {
         System.out.println("==============执行定时任务开始================");
         Long start = 0L, count = 100L;

+ 2 - 2
whepi-web/src/main/java/com/bofeng/dao/UserOpenMapper.java

@@ -29,8 +29,8 @@ public interface UserOpenMapper extends BaseMapper<UserOpen> {
 //            "select user_id as userId, open_id as openId, nick_name as nickName from sys_user_open limit #{start}, #{count}"
 //    )
     @Select("select user_id as userId, open_id as openId, nick_name as nickName from sys_user_open suo \n" +
-            "left join ms_report mr on mr.user_create=suo.user_id \n" +
-            "where (mr.report_status<1 or mr.report_status is null) and (mr.report_date = curdate() or mr.report_date is null) limit #{start}, #{count}"
+            "left join ms_report mr on mr.user_create=suo.user_id and (mr.report_status<1 or mr.report_status is null) and (mr.report_date = curdate() or mr.report_date is null)\n" +
+            "limit #{start}, #{count}"
     )
     List<UserOpen> getOpenUser(@Param("start") Long start, @Param("count") Long count);