修改多节点同时执行任务情况

This commit is contained in:
sh
2026-04-02 17:46:02 +08:00
parent 10a28b1b0b
commit c2b62fac6d
3 changed files with 46 additions and 5 deletions

View File

@@ -396,10 +396,13 @@
</select>
<update id="updateJobDown" parameterType="java.util.List">
update job set job_status='1' where del_flag='0' AND job_id in
<foreach collection="list" item="jobId" open="(" close=")" separator=",">
#{jobId}
</foreach>
update job set job_status='1' where del_flag='0'
<if test="list != null and !list.isEmpty()">
AND job_id in
<foreach collection="list" item="jobId" open="(" close=")" separator=",">
#{jobId}
</foreach>
</if>
</update>
</mapper>