zhcxCommissionCheckBaseInfoDetailDao.xml 1.2 KB

12345678910111213141516171819202122232425262728293031
  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.rongwei.bscommon.sys.dao.ZhcxCommissionCheckBaseInfoDetailDao">
  4. <update id="batchUpdate" parameterType="java.util.List">
  5. update ZHCX_COMMISSION_CHECK_BASE_INFO_DETAIL
  6. set CHAPTERNO = case
  7. <foreach collection="list" item="item" index="index">
  8. when id=#{item.id} then #{item.chapterno}
  9. </foreach>
  10. end
  11. where id in
  12. <foreach collection="list" item="item" index="index" open="(" separator="," close=")">
  13. #{item.id}
  14. </foreach>
  15. </update>
  16. <update id="batchUpdateChapterNoPuls" parameterType="java.util.List">
  17. update ZHCX_COMMISSION_CHECK_DETAIL
  18. set CHAPTERNOPULS = case
  19. <foreach collection="list" item="item" index="index">
  20. when id=#{item.id} then #{item.chapternopuls}
  21. </foreach>
  22. end
  23. where id in
  24. <foreach collection="list" item="item" index="index" open="(" separator="," close=")">
  25. #{item.id}
  26. </foreach>
  27. </update>
  28. </mapper>