package com.td.boss.game.comsnbtran.service;

import com.td.boss.common.service.*;
import com.td.boss.game.comcntorder.vo.ComCntOrderPayTypeSumVo;
import com.td.boss.game.comsnbtran.pojo.ComSnbTran;
import com.td.boss.game.comsnbtran.vo.ComSnbTranTranTypeSumVo;
import com.td.boss.game.comsnbtran.vo.ComSnbTranVo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.List;

public interface ComSnbTranService extends CommonService<ComSnbTranVo, ComSnbTran, String> {
    Page<ComSnbTran> findAllByUserId(String userId, Pageable pageable);

    List<ComSnbTranTranTypeSumVo> findAllSNBSumGroupByPayType();


    //按日期返回一个snb消费记录
    List<ComSnbTranTranTypeSumVo> findAllSNBSumGroupByPayTypeFromDate(Date startTime, Date endTime);
}
