ruoyi-service/ruoyi-account/src/main/resources/mapper/account/TAppUserWhitelistMapper.xml
@@ -59,4 +59,9 @@ set balance = IFNULL(balance, 0) + #{amount}, update_time = now(), update_by = #{updateBy} where id = #{id} and del_flag = 0 </update> <update id="clearBalance"> update t_app_user_whitelist set balance = 0, update_time = now(), update_by = #{updateBy} where id = #{id} and del_flag = 0 and balance > 0 </update> </mapper>