xiaoyong931011
2023-01-06 d8f20196fb659300b0a8eb3e7c5d7ab1ad7fcb7e
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>