日期:2014-05-17 浏览次数:20836 次
SELECT o.* FROM ORDER_RELEASE o, order_release_status orss
WHERE orss.order_release_gid = o.order_release_gid
AND orss.status_type_gid = 'DUPONTCHN.KPI_COUNT'
AND glog_util.remove_domain(orss.status_value_gid)='Y'
AND EXISTS (SELECT 1 FROM ORDER_RELEASE o1 WHERE o.order_release_gid = o1.order_release_gid
AND (o1.ORDER_RELEASE_TYPE_GID= 'DUPONTCHN.OUTBOUND'
OR o1.ORDER_RELEASE_TYPE_GID= 'DUPONTCHN.RETURN'
OR o1.ORDER_RELEASE_TYPE_GID='DUPONTCHN.SAMPLE'))