package com.ssm.manage.mapper;

import com.ssm.core.mapper.BaseMapper;
import com.ssm.manage.entity.PayList;
import com.ssm.manage.entity.RepayList;
import com.ssm.manage.extendEntity.StoreDaily;
import com.ssm.manage.query.RepayListRequest;
import com.ssm.manage.query.StoreDailyRequest;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface RepayListMapper extends BaseMapper<RepayList> {
    StoreDaily selectDayRecord(StoreDailyRequest storeDailyRequest);

    List<StoreDaily> selectRepay(StoreDailyRequest storeDailyRequest);

    StoreDaily SumRepay(@Param("docNums") List<String> docNums);
    StoreDaily SumRepayByPromotion(@Param("docNums") List<String> docNums);
    StoreDaily SumRepayByRecharge(@Param("docNums") List<String> docNums);
    StoreDaily SumRepayByCourse(@Param("docNums") List<String> docNums);

    List<StoreDaily> selectRepay1(StoreDailyRequest storeDailyRequest);
    //还款类型单数
    List<StoreDaily> selectRepayType(StoreDailyRequest storeDailyRequest);

    //查询促销金额
    StoreDaily selectCashRechargeMoney(StoreDailyRequest storeDailyRequest);
    List<StoreDaily> selectCashRechargeMoney1(StoreDailyRequest storeDailyRequest);

    //查询现付收款类型
    List<PayList> selectTypeMoneys(StoreDailyRequest storeDailyRequest);

    //查询作废的还款单据
    List<StoreDaily> selectRepayCancel(StoreDailyRequest storeDailyRequest);

    List<RepayList> selectNew(RepayListRequest repayListRequest);
    List<RepayList> selectByRepayNum(@Param("repayNumList") List<String> repayNumList);
}