情况1

<update id=""  parameterType="">
    update tb_thread set isDelete=0
    where threadId in ( 
    <foreach collection="list" item="item" index="index" open="" close="" separator=",">
            #{item.threadId}
    </foreach>
            )     
  </update>

情况2

数据源后加:&allowMultiQueries=true

 <update id="updateJdzClassifyDataGroupId"  parameterType="com.macro.mall.project.classify.domain.JdzClassifyData">
        <foreach collection="list" item="item" index="index">
            update jdz_classify_data
            set group_id=#{item.groupId}
            where id=#{item.id};
        </foreach>
    </update>

 

相关文章:

  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-17
  • 2021-08-17
  • 2021-08-01
  • 2021-06-04
猜你喜欢
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2022-12-23
相关资源
相似解决方案