From fa604e1527d49819b5cc23567dac367664f61557 Mon Sep 17 00:00:00 2001 From: itcast Date: Fri, 23 Jan 2026 10:58:30 +0800 Subject: [PATCH] =?UTF-8?q?bm=5Ffile=5Finfo=E6=9F=A5=E8=AF=A2=E5=92=8C?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B7=BB=E5=8A=A0del=5Fflag=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../material/basic/BmFileInfoMapper.xml | 37 +++++++++++-------- .../material/part/PartArrivedMapper.xml | 11 +++--- .../purchase/PurchaseCheckFileMapper.xml | 2 +- .../record/DerateRecordQueryMapper.xml | 4 +- 4 files changed, 31 insertions(+), 23 deletions(-) diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/basic/BmFileInfoMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/basic/BmFileInfoMapper.xml index 185e8cf6..9aa25de3 100644 --- a/bonus-modules/bonus-material/src/main/resources/mapper/material/basic/BmFileInfoMapper.xml +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/basic/BmFileInfoMapper.xml @@ -22,6 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - where id = #{id} + where id = #{id} and del_flag != 2 @@ -91,33 +92,37 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where id = #{id} - - delete from bm_file_info where id = #{id} - + + update bm_file_info set del_flag = 2 + where id = #{id} + - - delete from bm_file_info where model_id = #{modelId} - + + update bm_file_info set del_flag = 2 + where model_id = #{modelId} + - - delete from bm_file_info where id in + + update bm_file_info set del_flag = 2 + where id in #{id} - + - - delete from bm_file_info + + update bm_file_info set del_flag = 2 and task_type = #{taskType} and task_id = #{taskId} and model_id = #{modelId} and file_type = #{fileType} - + - - delete from bm_file_info where task_id = #{taskId} + + update bm_file_info set del_flag = 2 + where task_id = #{taskId} and task_type = 0 - + \ No newline at end of file diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/part/PartArrivedMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/part/PartArrivedMapper.xml index 9e8110ef..21f48f67 100644 --- a/bonus-modules/bonus-material/src/main/resources/mapper/material/part/PartArrivedMapper.xml +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/part/PartArrivedMapper.xml @@ -217,19 +217,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select distinct task_type as taskType,task_id as taskId,model_id as modelId, file_type as fileType from bm_file_info - where task_type = #{taskType} and task_id = #{taskId} and model_id = #{modelId} + where del_flag != 2 and task_type = #{taskType} and task_id = #{taskId} and model_id = #{modelId} - - delete from bm_file_info where task_id = #{taskId} and task_type = 13 - + + update bm_file_info set del_flag = 2 + where task_id = #{taskId} and task_type = 13 +