This commit is contained in:
linfso 2024-07-10 22:08:58 +08:00
parent e655ed6627
commit f60f632831

View File

@ -690,7 +690,7 @@
</if>
<if test="params.isNeedPack != null and params.isNeedPack == 1">
and a.bill_code not in( select etp.bill_code from emis_tms_pack_dtl etp where etp.del_flag='0' )
and not EXISTS ( select 1 from emis_tms_pack_dtl etp where etp.del_flag='0' and etp.main_bill_code=a.bill_code )
and a.trans_line_type in(
select line_code from emis_trans_line etl where etl.trans_type=1
)