diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/WmsRawOrderInMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/WmsRawOrderInMapper.xml index f5e74ec6a..28c2b7c57 100644 --- a/op-modules/op-wms/src/main/resources/mapper/wms/WmsRawOrderInMapper.xml +++ b/op-modules/op-wms/src/main/resources/mapper/wms/WmsRawOrderInMapper.xml @@ -252,7 +252,7 @@ LEFT JOIN wms_raw_order_in_sn ON wms_raw_order_in.dn_no=wms_raw_order_in_sn.user_defined5 AND wms_raw_order_in_sn.po_no=wms_raw_order_in.po_no AND wms_raw_order_in.material_code= wms_raw_order_in_sn.material_code LEFT JOIN ods_procure_order ON ods_procure_order.ID= wms_raw_order_in_sn.user_defined3 - where wms_raw_order_in.raw_order_in_id = #{rawOrderInId} + where wms_raw_order_in.raw_order_in_id = #{ID} and wms_raw_order_in.order_status='0'