bugfix:account mapper count 去重问题

This commit is contained in:
2025-04-14 14:58:23 +08:00
parent 21efcf3ea6
commit 77a06e0edd

View File

@@ -99,7 +99,7 @@
<!-- 查询总记录数 (优化版) -->
<select id="countCreditUsage" resultType="int">
SELECT COUNT(1)
SELECT COUNT(DISTINCT a.id)
FROM t_account a
<if test="changeEvent != null or startTime != null or endTime != null">
LEFT JOIN t_credits_detail cd ON a.id = cd.account_id