魏超 5 years ago
parent
commit
977297ec4a

+ 1
- 1
src/main/java/com/huiju/estateagents/job/JudglActivityTimeJob.java View File

@@ -43,7 +43,7 @@ public class JudglActivityTimeJob extends BaseController {
43 43
     /**
44 44
      * 开启定时任务,每天12:30执行
45 45
      */
46
-    @Scheduled(cron = "* 0/5 ** * * ?")
46
+    @Scheduled(cron = "* 0/5 * * * ?")
47 47
     private void configureTasks() {
48 48
 
49 49
         //未开始活动更新为已开始

+ 1
- 1
src/main/resources/mapper/TaBuildingDynamicMapper.xml View File

@@ -99,7 +99,7 @@
99 99
         update ta_building_dynamic t
100 100
         set activity_status = 0
101 101
         where
102
-        t.activity_status = 1 and NOW() between  t.create_date and  t.end_date
102
+        t.activity_status = 1 and NOW() between  t.start_date and  t.end_date
103 103
     </update>
104 104
 
105 105
     <update id="updateProcessingActivity">