From bcc66e6d54badf46c576017f131de9aa6b9b2f0c Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Wed, 28 Dec 2022 17:26:59 +0800
Subject: [PATCH] fix

---
 src/main/resources/mapper/modules/MallMemberStarBuyMapper.xml |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/modules/MallMemberStarBuyMapper.xml b/src/main/resources/mapper/modules/MallMemberStarBuyMapper.xml
index 9cfe55b..24853ca 100644
--- a/src/main/resources/mapper/modules/MallMemberStarBuyMapper.xml
+++ b/src/main/resources/mapper/modules/MallMemberStarBuyMapper.xml
@@ -31,4 +31,13 @@
             and member_id = #{memberId}
     </select>
 
+    <select id="selectSumAvaAmountByStatusAndMemberId" resultType="java.math.BigDecimal">
+        select
+            ifnull(sum(a.ava_amount),0)
+        from mall_member_star_buy a
+        where
+            a.member_id = #{memberId}
+          and a.status = #{status}
+    </select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1