xiaoyong931011
2022-12-28 9ba6a1c6cd6bf4d04591a9214abdb5c8c6cbff78
src/main/resources/mapper/modules/MallMemberWalletMapper.xml
@@ -60,4 +60,12 @@
    <select id="selectSumCommission" resultType="java.math.BigDecimal">
        select ifnull(sum(commission),0) total from mall_member_wallet
    </select>
    <update id="updateBlockBalanceById">
        update mall_member_wallet
        set
            balance = IFNULL(balance, 0) + #{balance}
        where id=#{id}
    </update>
</mapper>