## Feat - Top 30 (直推人数/直推金额) - 排除死点
This commit is contained in:
parent
486340aedc
commit
e2532c009b
|
|
@ -48,6 +48,7 @@
|
||||||
and order_status = 1
|
and order_status = 1
|
||||||
AND (order_type in (1,2) or (order_Type = 3 and ORDER_TYPE_EXTEND = 1))
|
AND (order_type in (1,2) or (order_Type = 3 and ORDER_TYPE_EXTEND = 1))
|
||||||
and o.pay_time between #{param.startDate} and #{param.endDate}
|
and o.pay_time between #{param.startDate} and #{param.endDate}
|
||||||
|
group by PK_REFERENCE
|
||||||
) r
|
) r
|
||||||
left join cu_member cm on r.PK_REFERENCE = cm.pk_id
|
left join cu_member cm on r.PK_REFERENCE = cm.pk_id
|
||||||
WHERE ROWNUM <![CDATA[ <=]]> 30
|
WHERE ROWNUM <![CDATA[ <=]]> 30
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue