package com.kxs.user.biz.mapper.old;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kxs.user.api.model.KxsLeaderAmountLog;
import com.kxs.user.api.model.KxsUserAmount;
import com.kxs.user.api.model.old.KxsMain;
import com.kxs.user.api.model.old.TradeDaySummary;
import com.kxs.user.api.vo.kxsapp.userLevel.AmountDetailVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * 操作老库
 *
 * @author 没秃顶的码农
 * @date 2024-02-27
 */
@Mapper
@DS("KxsProfitServer")
public interface KxsMainServerMapper extends BaseMapper<KxsMain> {


    /**
     * 扣除盟主可提现额度
     *
     * @param userAmount 用户数量
     */
    void deductMakerUseAmount(KxsUserAmount userAmount);

    /**
     * 添加金额日志
     *
     * @param kxsLeaderAmountLog KXS 领导金额日志
     */
    void addAmountLog(KxsLeaderAmountLog kxsLeaderAmountLog);

}
