Blame view

ClassesDictMapper.java 1005 Bytes
涂亚平 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
package com.meishu.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.meishu.model.ClassesDictDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.meishu.model.UserRoleDO;
import com.meishu.vo.classes.GetClassStudentsVO;
import com.meishu.vo.classes.GetClassesVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 学校班级字典表 Mapper 接口
 * </p>
 *
 * @author Tuyp
 * @since 2021-08-11
 */
@Repository
public interface ClassesDictMapper extends BaseMapper<ClassesDictDO> {

    IPage<GetClassesVO> getClasses(IPage page, String className, String grade, String session, String status);

    List<GetClassStudentsVO> getClassStudents(Integer classId,String userName);

    IPage<UserRoleDO> queryNoClassStudents(IPage iPage,String userName);

    ClassesDictDO getClassesById(@Param("studentId") Long studentId);

    List<ClassesDictDO> getGradeClasses(String grade);

}