diff --git a/emis-biz/src/main/resources/mapper/EmisWarehouseInMapper.xml b/emis-biz/src/main/resources/mapper/EmisWarehouseInMapper.xml index 72502fbe0..0a2ed000f 100644 --- a/emis-biz/src/main/resources/mapper/EmisWarehouseInMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWarehouseInMapper.xml @@ -171,7 +171,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - and EXISTS (select 1 from emis_waybill ewb where a.bill_code=ewb.bill_code and ewb.into_warehouse_code=#{params.privSiteCode}) + and EXISTS ( + select 1 from emis_waybill ewb where a.bill_code=ewb.bill_code and ewb.pickup_method in('1','3') and ewb.order_status in ('0','1','3') and ewb.into_warehouse_code=#{params.privSiteCode} + )