瀏覽代碼

定时任务

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

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

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

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

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