空值问题

This commit is contained in:
2025-10-30 09:37:47 +08:00
parent 1765f1c782
commit b85286b7f0

View File

@@ -68,7 +68,7 @@
</select>
<select id="getOrderConsumeAmountById" resultType="java.math.BigDecimal">
select sum(pay_amount)
select IFNULL(SUM(pay_amount), 0) AS totalAmount
from tb_order_info
where shop_id = #{shopId}
AND pay_type NOT IN ('vip_pay', 'credit_pay')