src/main/resources/mapper/member/MemberWalletCoinDao.xml
@@ -39,5 +39,21 @@ where id=#{id} </update> <update id="updateWalletBalance" parameterType="map"> update member_wallet_coin <set> <if test="availableBalance != null"> available_balance = IFNULL(available_balance, 0) + #{availableBalance}, </if> <if test="totalBalance != null"> total_balance = IFNULL(total_balance, 0) + #{totalBalance}, </if> <if test="frozenBalance != null"> frozen_balance = IFNULL(frozen_balance, 0) + #{frozenBalance}, </if> </set> where id=#{id} </update> </mapper>