package com.fs.course.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fs.course.domain.StatisticsTable;
import com.fs.course.mapper.StatisticsTableMapper;
import com.fs.course.param.FsCourseWatchLogParam;
import com.fs.course.service.IStatisticsTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
@Service
public class IStatisticsTableServiceImpl extends ServiceImpl<StatisticsTableMapper, StatisticsTable> implements IStatisticsTableService {

    @Autowired
    private StatisticsTableMapper statisticsTableMapper;
    @Override
    public List<StatisticsTable> selectAppIdList(FsCourseWatchLogParam fsCourseWatchLog) {
        fsCourseWatchLog.setBeginTime(fsCourseWatchLog.getBeginTime() + " 00:00:00");
        fsCourseWatchLog.setEndTime(fsCourseWatchLog.getEndTime() + " 23:59:59");
        return statisticsTableMapper.selectAppIdList(fsCourseWatchLog);
    }
}
