mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 04:39:00 +08:00
🐛 Fixing a bug.优化一处mysql特有的函数
This commit is contained in:
1 parent
f5d37cd297
commit
de77ef0b5b
1 file changed
+2
-2
+2
-2
@@ -22,7 +22,7 @@
|
||||
<select id="findDead" parameterType="java.util.HashMap" resultType="java.lang.Integer" >
|
||||
SELECT t.id
|
||||
FROM xxl_job_registry AS t
|
||||
WHERE t.update_time <![CDATA[ < ]]> DATE_ADD(#{nowTime},INTERVAL -#{timeout} SECOND)
|
||||
WHERE t.update_time <![CDATA[ < ]]> TIMESTAMPADD(SECOND,-#{timeout},#{nowTime})
|
||||
</select>
|
||||
|
||||
<delete id="removeDead" parameterType="java.lang.Integer" >
|
||||
@@ -36,7 +36,7 @@
|
||||
<select id="findAll" parameterType="java.util.HashMap" resultMap="XxlJobRegistry">
|
||||
SELECT <include refid="Base_Column_List" />
|
||||
FROM xxl_job_registry AS t
|
||||
WHERE t.update_time <![CDATA[ > ]]> DATE_ADD(#{nowTime},INTERVAL -#{timeout} SECOND)
|
||||
WHERE t.update_time <![CDATA[ > ]]> TIMESTAMPADD(SECOND,-#{timeout},#{nowTime})
|
||||
</select>
|
||||
|
||||
<update id="registryUpdate" >
|
||||
|
||||
Reference in new issue
Block a user