src/main/resources/mapper/modules/MallMemberMapper.xml
@@ -41,6 +41,8 @@ a.account_status, a.CREATED_TIME, IFNULL(c.balance,0) balance, IFNULL(c.score,0) score, IFNULL(c.prize_score,0) prizeScore, d.description levelName, b.name FROM mall_member a @@ -347,7 +349,7 @@ </select> <select id="selectAchieveByMemberId" resultType="java.math.BigDecimal"> select sum(a.amount) select IFNULL(sum(IFNULL(a.amount, 0)), 0) from mall_order_info a inner join mall_member b on a.member_id=b.ID inner join mall_order_item c on a.id = c.order_id and c.is_normal=2