<update >
    #{item}
  </foreach>
</update>

 

1,传入参数:

  Map<String,Object> map = new HashMap<String,Object>();

  map.put("dealTime",1);

  map.put("orderIds",orderIds);//orderIds可以为字符串数组或是list

2,update test set test_count=test_count+1

  搞了两个多小时,才知道这种写法也可以,崩溃

3,mybatis执行sql***

 

 

相关文章:

  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-05
  • 2021-07-06
  • 2021-11-26
  • 2022-12-23
  • 2021-06-09
相关资源
相似解决方案