diff --git a/src/main/resources/mapper/Archive_MasterMapper.xml b/src/main/resources/mapper/Archive_MasterMapper.xml index ae4b7071..14feabdb 100644 --- a/src/main/resources/mapper/Archive_MasterMapper.xml +++ b/src/main/resources/mapper/Archive_MasterMapper.xml @@ -678,8 +678,8 @@ LEFT JOIN (select MasterID,COUNT(*) num from archive_printInfo group by MasterID) printTable on m.id=printTable.MasterID where 1=1 - and patindex('%B%',m.inp_no) = 0 - and m.ArchiveState not in('作废') + and patindex('%B%',m.inp_no) in (0,1) + and m.ArchiveState not in('作废','已封存') and m.id = #{id,jdbcType=NVARCHAR}