12345678910111213141516171819202122232425262728293031 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.rongwei.bscommon.sys.dao.ZhcxCommissionCheckBaseInfoDetailDao">
- <update id="batchUpdate" parameterType="java.util.List">
- update ZHCX_COMMISSION_CHECK_BASE_INFO_DETAIL
- set CHAPTERNO = case
- <foreach collection="list" item="item" index="index">
- when id=#{item.id} then #{item.chapterno}
- </foreach>
- end
- where id in
- <foreach collection="list" item="item" index="index" open="(" separator="," close=")">
- #{item.id}
- </foreach>
- </update>
- <update id="batchUpdateChapterNoPuls" parameterType="java.util.List">
- update ZHCX_COMMISSION_CHECK_DETAIL
- set CHAPTERNOPULS = case
- <foreach collection="list" item="item" index="index">
- when id=#{item.id} then #{item.chapternopuls}
- </foreach>
- end
- where id in
- <foreach collection="list" item="item" index="index" open="(" separator="," close=")">
- #{item.id}
- </foreach>
- </update>
- </mapper>
|