yanderong
4 天以前 7617d46abee2950b7336e3379f8c7a564939cb54
ruoyi-service/ruoyi-account/src/main/resources/mapper/account/TVinManagementMapper.xml
@@ -64,4 +64,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_vin_management
        SET balance = 0, update_time = NOW(), update_by = #{updateBy}
        WHERE id = #{id} AND del_flag = 0 AND balance &gt; 0
    </update>
</mapper>