xiaoyong931011
2023-10-13 7ecd2c9bb7b1a77fd2d55a59b2ce85c9ddb26ee7
src/main/resources/mapper/modules/MallMemberWalletMapper.xml
@@ -44,4 +44,20 @@
        </if>
        where id=#{record.id} and revision=#{record.revision}
    </update>
    <select id="selectSumBalance" resultType="java.math.BigDecimal">
        select ifnull(sum(balance),0) total from mall_member_wallet
    </select>
    <select id="selectSumScore" resultType="java.math.BigDecimal">
        select ifnull(sum(score),0) total from mall_member_wallet
    </select>
    <select id="selectSumPrizeScore" resultType="java.math.BigDecimal">
        select ifnull(sum(prize_score),0) total from mall_member_wallet
    </select>
    <select id="selectSumCommission" resultType="java.math.BigDecimal">
        select ifnull(sum(commission),0) total from mall_member_wallet
    </select>
</mapper>