Commit 8c10d826 by Huang Linyu

排行榜数据中排除驳回的数据

parent ae336c9e
......@@ -1260,7 +1260,7 @@ public class UserExtDao extends GenericHibernateDao<UserExt, Integer> {
sql.append(" COUNT(CASE WHEN p.productName='360.00' THEN p.customerMobile END) AS myNum2");
sql.append(" FROM(");
sql.append(" SELECT a.saleMobile,a.customerMobile ,CONCAT(a.productName,'.00') AS productName");
sql.append(" FROM active_customer a WHERE a.createTime>'2018-11-19 12:59:59' ");
sql.append(" FROM active_customer a WHERE a.createTime>'2018-11-19 12:59:59' AND a.auditState&128<>128 ");
sql.append(" UNION ");
sql.append(" SELECT d.bindedMobilePhone AS saleMobile ,c.bindedMobilePhone AS customerMobile,CONCAT(a.amount) AS productName");
sql.append(" FROM ord_order a LEFT JOIN ord_communeitem b ON a.orderId = b.orderId");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment