This commit is contained in:
linfso 2025-01-11 19:27:29 +08:00
parent 7c021b24a9
commit 40ba81465a

View File

@ -469,21 +469,16 @@
<!-- 有发未到 --> <!-- 有发未到 -->
<if test="params.queryHasSendNotArrive != null and params.queryHasSendNotArrive == 1 "> <if test="params.queryHasSendNotArrive != null and params.queryHasSendNotArrive == 1 ">
and scan_type='20' and scan_type='20'
and not exists ( and main_bill_code not in(
select 1 from emis_tms_scan_record b 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
where b.del_flag='0' and a.bill_code=b.bill_code
and b.scan_site=a.pre_or_next_station_code
and b.scan_type='30'
) )
</if> </if>
<!-- 有到未发 --> <!-- 有到未发 -->
<if test="params.queryHasArriveNotSend != null and params.queryHasArriveNotSend == 1 "> <if test="params.queryHasArriveNotSend != null and params.queryHasArriveNotSend == 1 ">
and scan_type='30' and scan_type='30'
and not exists ( and main_bill_code not in(
select 1 from emis_tms_scan_record b 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
where b.del_flag='0' and a.bill_code=b.bill_code
and b.pre_or_next_station_code=a.scan_site and b.scan_type='20'
) )
</if> </if>