<update id="bathUpdate" parameterType="java.util.List">
<foreach collection="list" item="entity" index="index" open="begin" close=";end;" separator=";">
update WI_WATER_DAY_M
<set>
SINGULAR_VALUE = #{entity.singularValue,jdbcType=VARCHAR}
</set>
where MEAS_ID = #{entity.measId,jdbcType=VARCHAR}
and DATE_STR = #{entity.dateStr,jdbcType=VARCHAR}
</foreach>
</update>
mybitis oracle批量修改 。oracle 和mysql 注意 foreache 有区别
最新推荐文章于 2024-07-09 17:22:14 发布