package com.yonge.cooleshow.biz.dal.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yonge.cooleshow.biz.dal.vo.StudentTotalVo;
import com.yonge.cooleshow.biz.dal.dto.search.StudentTotalSearch;
import com.yonge.cooleshow.biz.dal.entity.StudentTotal;

import java.util.List;

/**
 * 学生统计总表 服务类
 * @author liweifan
 * @date 2022-04-11
 */
public interface StudentTotalService extends IService<StudentTotal>  {

	/**
     * 查询详情
     * @author liweifan
 	 * @date 2022-04-11
     */
	StudentTotalVo detail(Long id);

    /**
     * 分页查询
     * @author liweifan
 	 * @date 2022-04-11
     */
    IPage<StudentTotalVo> selectPage(IPage<StudentTotalVo> page, StudentTotalSearch query);
	/***
	 * 查询所有学生首页统计数据
	 * @author liweifan
	 * @updateTime 2022/3/29 10:53
	 * @return: java.util.List<com.yonge.cooleshow.biz.dal.vo.StudentTotalVo>
	 */
	List<StudentTotal> queryStudentTotal();
	/***
	 * 查询单个学生统计数据
	 * @author liweifan
	 * @param: id
	 * @updateTime 2022/5/13 17:42
	 * @return: com.yonge.cooleshow.biz.dal.entity.StudentTotal
	 */
	StudentTotal getTotalById(Long id);

	void updateTotalCache(StudentTotal studentTotal);
}