<update id="updateBankAccountInfoBatch" parameterType="java.util.List">
update bank_account_info
<trim prefix="set" suffixOverrides=","><trim prefix="company_id=case" suffix="end,"><foreach collection="list" item="item" index="index"><if test="item.companyId !=null">
when id = #{item.id,jdbcType=INTEGER} then #{item.companyId}</if><if test="item.companyId == null">
when id=#{item.id} then bank_account_info.company_id
</if></foreach></trim><trim prefix="account_name=case" suffix="end,"><foreach collection="list" item="item" index="index"><if test="item.accountName !=null and item.accountName != '' ">
when id = #{item.id,jdbcType=INTEGER} then #{item.accountName}</if><if test="item.accountName == null or item.accountName == ''">
when id=#{item.id} then bank_account_info.accountName
</if></foreach></trim></trim>
where id in
<foreach collection="list" index="index" item="item"
separator=","open="(" close=")">
#{item.id}</foreach></update>