You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
686 B

2 years ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.spring.modules.job.dao.ScheduleJobDao">
  4. <!-- 批量更新状态 -->
  5. <update id="updateBatch">
  6. update schedule_job set status = #{status} where job_id in
  7. <foreach item="jobId" collection="list" open="(" separator="," close=")">
  8. #{jobId}
  9. </foreach>
  10. </update>
  11. <!-- 批量更新状态 -->
  12. <update id="updateBatchs">
  13. update schedule_job set status = #{status} where job_id in
  14. <foreach item="jobId" collection="list" open="(" separator="," close=")">
  15. #{jobId}
  16. </foreach>
  17. </update>
  18. </mapper>