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