This commit is contained in:
linfso 2024-06-20 02:34:34 +08:00
parent d93f52b4e7
commit b249ea5ffa

View File

@ -137,10 +137,10 @@
from emis_tms_scan_record a,emis_waybill b
where a.del_flag='0' and b.del_flag='0' and a.main_bill_code=b.bill_code and b.bl_sign!='1'
and a.main_bill_code in(
select x.main_bill_code
select distinct x.main_bill_code
from emis_tms_scan_record x
where x.del_flag='0' and x.scan_site_code=#{scanSiteCode}
x.scan_type=#{scanType}
and x.scan_type=#{scanType}
<if test="preOrNextStationCode != null and preOrNextStationCode != ''"> and x.pre_or_next_station_code=#{preOrNextStationCode}</if>
<if test="scanManCode != null and scanManCode != ''"> and x.scan_man_code=#{scanManCode}</if>
<if test="params.beginScanDate != null and params.beginScanDate != ''">and x.scan_date <![CDATA[ >= ]]> #{params.beginScanDate}</if>