From 1bf57dbbb7025facb8a3e3c2074e82af6f13b24f Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Thu, 28 Apr 2022 15:13:59 +0800 Subject: [PATCH] fix --- src/main/resources/mapper/modules/MallOrderInfoMapper.xml | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/modules/MallOrderInfoMapper.xml b/src/main/resources/mapper/modules/MallOrderInfoMapper.xml index 2f61d0f..d72aa95 100644 --- a/src/main/resources/mapper/modules/MallOrderInfoMapper.xml +++ b/src/main/resources/mapper/modules/MallOrderInfoMapper.xml @@ -174,7 +174,7 @@ </select> <select id="selectTotalAmount" resultType="java.math.BigDecimal"> - select sum(amount) from mall_order_info + select IFNULL(sum(IFNULL(amount,0)),0) from mall_order_info where member_id=#{memberId} and status = 4 </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1