package com.ssm.manage.dao;

import com.github.pagehelper.PageInfo;
import com.ssm.manage.entity.BaseGrouponCard;
import com.ssm.manage.entity.RechargeList;
import com.ssm.manage.extendEntity.StoreDaily;
import com.ssm.manage.query.RechargeListRequest;
import com.ssm.manage.query.StoreDailyRequest;
import com.ssm.manage.response.RechargeListResponse;
import com.ssm.manage.response.RechargeVo;

import java.util.List;

public interface SsmRechargeDao extends BaseDao<RechargeList> {
    PageInfo<RechargeList> selectPage(RechargeListRequest rechargeListRequest);
    PageInfo<RechargeList> selectPageNew(RechargeListRequest rechargeListRequest);
    PageInfo<RechargeList> selectPages(RechargeListRequest rechargeListRequest);

    void createTable(String date);
    void createTable1(String date);

    RechargeList selectById(RechargeList rechargeList);
    int addRecharge(RechargeList rechargeList);

    List<RechargeList> getDocNum(RechargeListRequest rechargeListRequest);

    int cancel(RechargeList rechargeList);

    List<RechargeList> getRecDoc(RechargeListRequest rechargeListRequest);

    int updateStaff(RechargeList rechargeList);

    StoreDaily selectDayRecord(StoreDailyRequest storeDailyRequest);
    StoreDaily NegativeKazin(StoreDailyRequest storeDailyRequest);

    List<RechargeList> selectListSalem(RechargeList rechargeList);

    int updateRatio(RechargeList rechargeList);

    //团购卡次数和金额
    StoreDaily grouponTuan(StoreDailyRequest dailyRequest);

    //团购卡次数和金额
    PageInfo<BaseGrouponCard> grouponTuan1(StoreDailyRequest dailyRequest);

    RechargeList selectAchiEntities(RechargeList rechargeList);

    List<RechargeVo> selectByDay(StoreDailyRequest storeDailyRequest);

    List<StoreDaily> selectByDayGroupByDateAndStoreId(StoreDailyRequest storeDailyRequest);

    PageInfo<RechargeList> rechargeGifList(RechargeListRequest rechargeListRequest);
}
