Merge branch 'dev/dev_xp' into dev/dev

This commit is contained in:
2025-04-14 15:20:32 +08:00
6 changed files with 25 additions and 4 deletions

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