报错:
sql看起来是没有错得,allowMultiQueries参数也设置了,还是行
连接:
spring.datasource.url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true
mapper:
<update id="updateInventoryOut" parameterType="com.rollout.srl.warehousing.model.Test">
<foreach collection="inventoryOut" item="item" index="index" open="" close="" separator=";">
update tb_inventory
<set>
equipment_status = #{item.equipmentStatus},
is_delete = #{item.isDelete}
</set>
where serial_no = #{item.serialNo}
ORDER BY updated_at desc
limit 1
</foreach>
</update>
路过得大佬帮忙看看,非常感谢