修改订单提成过滤未审核数据

This commit is contained in:
huangdeliang 2020-10-06 18:00:24 +08:00
parent 3449d12385
commit 0e3b59b12f

View File

@ -32,6 +32,7 @@
SELECT ${column} AS user_id, SUM(amount) AS amount
FROM sys_order
WHERE ${column} IS NOT NULL
AND review_status = 'yes'
<if test="beginTime != null and beginTime != ''"> AND date_format(order_time,'%y%m%d') &gt;= date_format(${beginTime},'%y%m%d')</if>
<if test="endTime != null and endTime != ''">AND date_format(order_time,'%y%m%d') &lt;= date_format(${endTime},'%y%m%d')</if>
GROUP BY ${column}