package com.ruoyi.school.student.service;

import com.ruoyi.school.student.repo.model.ScStudentAccount;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 会员余额账户 服务类
 * </p>
 *
 * @author zhangby
 * @since 2020-08-21
 */
public interface IScStudentAccountService extends IService<ScStudentAccount> {

    /**
     * 会员账户余额
     * @param studentId
     * @return
     */
    BigDecimal selectStudentAccountBalance(Long studentId);

    /**
     * 增加会员账户余额
     * @param studentId
     * @param addBalance
     * @param userId
     */
    void addBalance(Long studentId, BigDecimal addBalance,Long userId);
}
