瀏覽代碼

定时任务

魏超 5 年之前
父節點
當前提交
17e55fec0e

+ 1
- 1
src/main/resources/mapper/TaBuildingDynamicMapper.xml 查看文件

99
         update ta_building_dynamic
99
         update ta_building_dynamic
100
         set activity_status = 1
100
         set activity_status = 1
101
         where
101
         where
102
-        #{curTime} <= enlist_start  and activity_status != 2
102
+        NOW() <= enlist_start  and activity_status != 2
103
     </update>
103
     </update>
104
 
104
 
105
     <update id="updateUnStartActivity">
105
     <update id="updateUnStartActivity">

+ 1
- 1
src/main/resources/mapper/TaShareActivityMapper.xml 查看文件

19
       update ta_share_activity
19
       update ta_share_activity
20
       set activity_status = 1
20
       set activity_status = 1
21
       where
21
       where
22
-      #{curTime} &lt; start_time and activity_status != 2
22
+      NOW() &lt; start_time and activity_status != 2
23
     </update>
23
     </update>
24
 
24
 
25
     <update id="updateUnStartGroupActivity">
25
     <update id="updateUnStartGroupActivity">