空值问题
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user