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)