package com.xhkjedu.suser.mapper.gradeclass;

import com.xhkjedu.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;
import java.util.Map;

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);

    /**
     * @Description 获取班级学生列表
     * @Date 2023/12/18 14:51
     * @Author YWX
     * @Param [schoolid, year, classtype]
     * @Return java.util.List<java.util.Map>
     **/
    List<Map> listClassStu(@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);

    //集团校班级列表
    List<Map> listJtClasses(@Param("schoolid")Integer schoolid);

    //教师设置集团学校班级权限列表
    List<Map> listTeacherJtClasses(@Param("schoolid")Integer schoolid, @Param("teacherid")Integer teacherid, @Param("year") Integer year);

    //集团校教师
    List<Map<String, String>> listJtTeacher(@Param("schoolid") Integer schoolid,@Param("year") Integer year);
}
