修改多节点同时执行任务情况
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user