This commit is contained in:
linfso 2025-01-15 19:01:32 +08:00
parent 593940b61b
commit a69fc7bc4f

View File

@ -470,7 +470,7 @@
<if test="params.queryHasSendNotArrive != null and params.queryHasSendNotArrive == 1 ">
and scan_type='20'
and main_bill_code not in(
select main_bill_code from emis_tms_scan_record b where b.del_flag='0' and b.scan_type='30' and b.scan_site_code=a.pre_or_next_station_code
select main_bill_code from emis_tms_scan_record b where b.del_flag='0' and b.scan_type='30' and b.scan_date >= a.scan_date
)
</if>
@ -478,7 +478,7 @@
<if test="params.queryHasArriveNotSend != null and params.queryHasArriveNotSend == 1 ">
and scan_type='30'
and main_bill_code not in(
select main_bill_code from emis_tms_scan_record b where b.del_flag='0' and b.scan_type='20' and b.pre_or_next_station_code=a.scan_site_code
select main_bill_code from emis_tms_scan_record b where b.del_flag='0' and b.scan_type='20' and b.scan_date >= a.scan_date
)
</if>