Browse Source

Update XxlJobInfoMapper.xml

解决调度过程中错误启动后台停止的任务bug
zhangbing-bing 1 năm trước cách đây
mục cha
commit
69c77bf5d9

+ 5 - 3
xxl-job-admin/src/main/resources/mybatis-mapper/XxlJobInfoMapper.xml

@@ -232,10 +232,12 @@
 		UPDATE xxl_job_info
 		SET
 			trigger_last_time = #{triggerLastTime},
-			trigger_next_time = #{triggerNextTime},
-			trigger_status = #{triggerStatus}
+			trigger_next_time = #{triggerNextTime}
+			<if test="triggerStatus == 0">
+			 , trigger_status = #{triggerStatus}
+			</if>
 		WHERE id = #{id}
 		  AND trigger_status = 1
 	</update>
 
-</mapper>
+</mapper>