From 9ca0dc6e7833715b875cc9b6b91d5c497b2bae8b Mon Sep 17 00:00:00 2001 From: zf <1603559716@qq.com> Date: 星期三, 30 八月 2023 09:05:45 +0800 Subject: [PATCH] Merge branch 'master' of https://sinanoaq.cn:8888/r/hazardInvestigationSystem into zf --- src/main/java/com/gk/hotwork/Mapper/mybatis/AttachmentInfoMapper.xml | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gk/hotwork/Mapper/mybatis/AttachmentInfoMapper.xml b/src/main/java/com/gk/hotwork/Mapper/mybatis/AttachmentInfoMapper.xml index 601c86e..95e0187 100644 --- a/src/main/java/com/gk/hotwork/Mapper/mybatis/AttachmentInfoMapper.xml +++ b/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> -- Gitblit v1.9.2