bugfix:account mapper count 去重问题
This commit is contained in:
@@ -99,7 +99,7 @@
|
|||||||
|
|
||||||
<!-- 查询总记录数 (优化版) -->
|
<!-- 查询总记录数 (优化版) -->
|
||||||
<select id="countCreditUsage" resultType="int">
|
<select id="countCreditUsage" resultType="int">
|
||||||
SELECT COUNT(1)
|
SELECT COUNT(DISTINCT a.id)
|
||||||
FROM t_account a
|
FROM t_account a
|
||||||
<if test="changeEvent != null or startTime != null or endTime != null">
|
<if test="changeEvent != null or startTime != null or endTime != null">
|
||||||
LEFT JOIN t_credits_detail cd ON a.id = cd.account_id
|
LEFT JOIN t_credits_detail cd ON a.id = cd.account_id
|
||||||
|
|||||||
Reference in New Issue
Block a user