package com.xhkjedu.suser.mapper.gradeclass;

import com.xhkjedu.suser.base.TkMapper;
import com.xhkjedu.suser.model.gradeclass.TGrade;
import com.xhkjedu.suser.vo.gradeclass.GradeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GradeMapper extends TkMapper<TGrade> {
    //学校年级列表
    List<TGrade> findAll(@Param("schoolid") Integer schoolid,@Param("year") Integer year);

    //详情
    TGrade findById(@Param("gradeid") Integer gradeid);

    /**
     * 获取通知班级列表
     * @Param [schoolid, year]
     * @Author ywx
     * @Date 2020/6/13 15:41
     * @return java.util.List<com.xhkjedu.suser.vo.gradeclass.GradeVo>
     **/
    List<GradeVo> listClass(@Param("schoolid") Integer schoolid, @Param("year") Integer year,@Param("classtype") Integer classtype);

    /**
     * 获取通知教师列表
     * @Param [schoolid, year]
     * @Author ywx
     * @Date 2020/6/13 15:43
     * @return java.util.List<com.xhkjedu.suser.vo.gradeclass.GradeVo>
     **/
    List<GradeVo> listTeacher(@Param("schoolid") Integer schoolid, @Param("year") Integer year);

    List<GradeVo> listClassForTeacher(Integer schoolid, Integer year);
}
