| | |
| | | , (select oic.audit_status from t_order_item_check oic where oic.order_item_id = oi.id and oic.type = 'reduce') reduceStatus |
| | | , (select oic.audit_status from t_order_item_check oic where oic.order_item_id = oi.id and oic.type = 'lack') lackStatus |
| | | , (select count(1) from t_order_item_check oic where oic.order_item_id = oi.id and oic.audit_status is null) unProcessCount |
| | | , ois.lack_fee_supplier, ois.replace_fee, ois.check_fee |
| | | FROM t_order_item oi |
| | | left join t_station s on s.id = oi.station_id |
| | | left join t_supplier_info si on si.id = oi.supplier_id |
| | | left join t_order_item_settlement ois on ois.order_item_id = oi.id |
| | | WHERE oi.deleted = 0 |
| | | and oi.order_id = #{orderId} |
| | | </select> |