diff --git a/op-modules/op-open/src/main/resources/mapper/open/OpenMapper.xml b/op-modules/op-open/src/main/resources/mapper/open/OpenMapper.xml index fb3d6d09..5c780a38 100644 --- a/op-modules/op-open/src/main/resources/mapper/open/OpenMapper.xml +++ b/op-modules/op-open/src/main/resources/mapper/open/OpenMapper.xml @@ -43,7 +43,7 @@ left join pro_process p on p.process_id = rfid.next_process_id left join pro_order_workorder w on w.workorder_code = rfid.workorder_code left join base_product bp on bp.product_code = w.product_code - where rfid.bind_status = '1' + where rfid.bind_status = '1' and w.del_flag = '0' and rfid.rfid = #{rfidNo} order by rfid.create_time desc @@ -53,7 +53,7 @@ when equipment_type_code ='equ_type_hf' then '2' else '' end from base_equipment - where equipment_code = #{equipmentCode} + where equipment_code = #{equipmentCode} and del_flag = '0'