统计:Review修改

This commit is contained in:
owen
2023-10-16 13:00:14 +08:00
parent ea810bb5d6
commit bb82c631e9
30 changed files with 274 additions and 207 deletions

View File

@@ -32,9 +32,8 @@
<select id="selectRechargeSummaryGroupByWalletId"
resultType="cn.iocoder.yudao.module.statistics.service.pay.bo.RechargeSummaryRespBO">
<!-- TODO @疯狂:是不是不用 group by而是通过 DISTINCT wallet_id 更合适哈? -->
SELECT COUNT(1) AS rechargeUserCount,
SUM(pay_price) AS rechargePrice
SELECT COUNT(DISTINCT wallet_id) AS rechargeUserCount,
SUM(pay_price) AS rechargePrice
FROM pay_wallet_recharge
WHERE pay_status = #{payStatus}
<if test="beginTime != null">
@@ -44,7 +43,6 @@
AND pay_time &lt;= #{endTime}
</if>
AND deleted = FALSE
GROUP BY wallet_id
</select>
<select id="selectRechargePriceSummary" resultType="java.lang.Integer">