puzhibing
4 天以前 3650ce7f5d42d1bef58abea9693f20d1f209d3b0
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 &gt; 0
    </update>
</mapper>