【发布时间】:2020-03-13 13:02:36
【问题描述】:
我的代码是这样的:
<update id="biz-update" parameterType="java.util.List">
<foreach collection="list" index="index" item="item" open="begin" close=";end;" separator=";">
update
biz_tbl
<set>
freeze_amount = nvl(freeze_amount,0) + #{item.payAmount}
</set>
where
id = #{item.cardId}
</foreach>
</update>
而且我在使用 Integer 时总是得到 -1 结果,或者在使用 Boolean 时得到错误结果
我试过application.yml这样:
mybatis:
configuration:
default-executor-type: simple
好像没关系。 那么,如何才能得到正确的 oracle 批量更新结果呢?
【问题讨论】:
-
您必须升级到 Oracle 12 或更高版本 - 请参阅类似的答案 here