This commit is contained in:
GYJ
2025-01-09 19:02:03 +08:00
parent ef3c35fd08
commit bece507b11
2 changed files with 3 additions and 3 deletions

View File

@@ -204,10 +204,10 @@
</update>
<select id="selectSumMoney" resultType="java.math.BigDecimal">
select format(sum(money),2) from cash_out where state = #{state} and user_id = #{userId}
select sum(money) from cash_out where state = #{state} and user_id = #{userId}
</select>
<select id="queryUserTodayCashOutSum" resultType="double">
select format(sum(money),2) from cash_out where state in (1, 3) and user_id = #{userId} and create_at >= #{time}
select sum(money) from cash_out where state in (1, 3) and user_id = #{userId} and create_at >= #{time}
</select>
</mapper>