批量更新多字段,多条件
<update id="update" parameterType="java.util.List">
begin
<foreach item="item" collection="list" index="index" separator=";">
update
A
SET
SJ = TO_DATE(#{item.sj},'yyyy-MM-dd hh24:mi:ss')
WHERE
zx
IN
<foreach item="xxx" collection="item.xxx" index="index" separator=";">
#{xxx}
</foreach>
</foreach>
;
<****此处略*****>
;end;
新手一枚,在成长的道路不断踩坑,如有不妥,欢迎指出!
生活不易,但也要长存理想!