批量更新的时候不能用子查询 where shop_orderform_id in( select shop_orderform_id from `shop_orderform` where user_name=xxxxx ) 执行时间如下 即使没有任何更新 也是巨慢 用多表关联更新 ,o.get_time='xxxx' where user_name=xxxxxx and s.shop_orderform_id=o.shop_orderform_id 执行时间如下 没有更新时候的速度
具体报错信息: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter '__frch_ecoYksKpi_0' not found. Available parameters are [list, param1] at org.mybatis.spring.MyBatisExceptionTranslator.tran
一.所有的指定id的模型类的同一个字段进行批量更新 实际上: update t set fileld='xx' where id in (id1,id2,...,idn) 代码: <update id="updateBatch" parameterType="Map"> update t_name set name = #{name,jdbcType=VARCHAR} where autoid in ( <foreach collection=&q