update 工单系统,客服回复空格丢失问题 。挖矿账户钱包总余额展示

This commit is contained in:
yyb
2025-07-09 13:58:42 +08:00
parent a51771db2e
commit 0857913e54
6 changed files with 30 additions and 13 deletions

View File

@@ -132,13 +132,21 @@
manage_broadcast
where del =false
</select>
<select id="getAccountBalance" resultType="java.math.BigDecimal">
<select id="getAccountIncome" resultType="java.math.BigDecimal">
SELECT
SUM(amount)
COALESCE(SUM(amount), 0)
FROM
wallet_in
where
coin = #{coin} AND `user` = #{user} AND state = 0
coin = #{coin} AND `user` = #{user}
</select>
<select id="getAccountExpend" resultType="java.math.BigDecimal">
SELECT
COALESCE(SUM(amount), 0)
FROM
wallet_outv2
where
coin = #{coin} AND `user` = #{user}
</select>
</mapper>