diff --git a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml index d08e2f709..14ee97c8c 100644 --- a/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisTmsScanRecordMapper.xml @@ -141,7 +141,7 @@ @@ -80,6 +80,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ) ) + + + and exists (select 1 from emis_waybill ewb where ewb.bl_sign = '1' and ewb.bill_code=a.bill_code) + + + + and exists (select 1 from emis_waybill ewb where ewb.bl_sign != '1' and ewb.bill_code=a.bill_code) + + + order by create_time desc