src/main/java/com/gk/hotwork/Mapper/mybatis/AttachmentInfoMapper.xml
@@ -11,11 +11,17 @@ </foreach> </insert> <update id="updateBusinessIdBatch"> <foreach collection="attachmentList" item="attachment"> <foreach collection="attachmentList" item="attachment" separator=";"> update attachment set business_id = #{attachment.id} business_id = #{attachment.businessId} where id = #{attachment.id} </foreach> </update> <update id="deleteByBusinessId"> update attachment set del_flag = 1 where business_id = #{businessId} </update> </mapper>