mybatis批量更新

```c
 <update id=" ">
        update table 
        <trim prefix="set" suffixOverrides=",">
            <trim prefix="columnname= case" suffix="end,">
                <foreach collection="list" item="item" index="index">
                    when id=#{item.id } then #{item.columnname,typeHandler=uyun.whale.common.mybatis.type.UUIDTypeHandler}
                </foreach>
            </trim>
        </trim>
        WHERE
        id IN
        <foreach collection="list" item="item" open="(" close=")" separator=",">
            #{item.id}
        </foreach>
    </update>

上一篇:Java之Frame


下一篇:Linux优化,history增加详细历史记录