<?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.whyc.mapper.BattWarehouseMapper" >
|
|
|
<update id="updateBatchById">
|
<foreach collection="list" item="item" index="index" separator=";">
|
update tb_batt_warehouse
|
<set>
|
<if test="item.taskNo != null">
|
task_no = #{item.taskNo},
|
</if>
|
<if test="item.onPlan != null">
|
on_plan = #{item.onPlan},
|
</if>
|
</set>
|
where id = #{item.id}
|
</foreach>
|
</update>
|
</mapper>
|