From 9e211d1cfd83c33dae21581119928f76c65d6104 Mon Sep 17 00:00:00 2001
From: sxu <602087911@qq.com>
Date: Fri, 23 Aug 2024 09:01:05 +0800
Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E9=80=80=E6=96=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../main/resources/mapper/app/BackReceiveMapper.xml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/BackReceiveMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/BackReceiveMapper.xml
index a25c478..10bc92d 100644
--- a/sgzb-modules/sgzb-material/src/main/resources/mapper/app/BackReceiveMapper.xml
+++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/app/BackReceiveMapper.xml
@@ -580,11 +580,11 @@
- update back_check_details set is_finished = 1 where parent_id = #{parentId} and type_id = #{typeId}
+ update back_check_details set is_finished = 1 where parent_id = #{parentId} and type_id = #{typeId} and (is_finished is null or is_finished != 1)
- delete from back_check_details where parent_id = #{parentId} and type_id = #{typeId}
+ delete from back_check_details where parent_id = #{parentId} and type_id = #{typeId} and (is_finished is null or is_finished != 1)
and ma_id = #{maId}
@@ -739,7 +739,7 @@
LEFT JOIN tm_task_agreement tta on tta.task_id=bai.task_id
WHERE
parent_id=#{parentId}
- and bcd.back_status='1'
+ and bcd.back_status='1' and (bcd.is_finished is null or bcd.is_finished != 1)