2021
10-15
10-15
mybatis注解如何实现对象批量更改
mybatis注解对象批量更改一、介绍当有多个对象需要进行更改时,批量修改对象集合List二、代码@Update("<script>"+"<foreachcollection='listUserAnswerRecord'item='item'open=''close=''separator=';'>"+"updatet_qb_record_201910"+"setanswered=0,progress=1,answer_sheet=null,gmt_update=#{item.gmtUpdate}"+"<where>"+"<choose>"+"<whentest='item.unionid!=null'>unionid=#{item.unionid}...
继续阅读 >