diff --git a/src/main/resources/mapper/Emr_Fault_DetailMapper.xml b/src/main/resources/mapper/Emr_Fault_DetailMapper.xml index 171bf950..3026061d 100644 --- a/src/main/resources/mapper/Emr_Fault_DetailMapper.xml +++ b/src/main/resources/mapper/Emr_Fault_DetailMapper.xml @@ -1069,7 +1069,7 @@ on m.id=f.master_id LEFT JOIN emr_fault_detail e on e.archive_detail_id=m.id - 1=1 and m.ArchiveState not in('作废','已封存','') and m.ArchiveState is not null and m.Is_Valid!=1 and total_back_num>0 and f.following_type=9 and e.back_flag in ('5','6') + 1=1 and m.ArchiveState not in('作废','已封存','') and m.ArchiveState is not null and m.Is_Valid!=1 and total_back_num>0 and f.following_type=9 and m.inp_no like '%'+#{inpNo,jdbcType=NCHAR}+'%' @@ -1190,7 +1190,6 @@ AND m.ArchiveState NOT IN ( '作废', '已封存', '' ) AND m.ArchiveState IS NOT NULL AND m.Is_Valid!= 1 - AND e.back_flag in ('5','6') AND l.bnum is null @@ -1203,6 +1202,30 @@ AND l.bnum>1 OR l1.cnum is not NULL OR l2.scoreSum>10 + + + + + + + + + + + + + + + + + + + + + + + + and m.inp_no like '%'+#{inpNo,jdbcType=NCHAR}+'%'