BaseStudentSchoolRollMapper.java 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package com.xjrsoft.module.student.mapper;
  2. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  3. import com.github.yulichang.base.MPJBaseMapper;
  4. import com.xjrsoft.module.student.dto.BaseStudentInfoDetailDto;
  5. import com.xjrsoft.module.student.dto.BaseStudentInfoPageDto;
  6. import com.xjrsoft.module.student.dto.UpdateBaseStudentInfoDto;
  7. import com.xjrsoft.module.student.entity.BaseStudentSchoolRoll;
  8. import com.xjrsoft.module.student.vo.BaseStudentInfoCategoryVo;
  9. import com.xjrsoft.module.student.vo.BaseStudentInfoDetailVo;
  10. import com.xjrsoft.module.student.vo.BaseStudentInfoPageVo;
  11. import org.apache.ibatis.annotations.Mapper;
  12. import org.apache.ibatis.annotations.Param;
  13. import org.apache.ibatis.annotations.Update;
  14. import java.util.List;
  15. /**
  16. * @title: mapper
  17. * @Author 管理员
  18. * @Date: 2023-08-08
  19. * @Version 1.0
  20. */
  21. @Mapper
  22. public interface BaseStudentSchoolRollMapper extends MPJBaseMapper<BaseStudentSchoolRoll> {
  23. Page<BaseStudentInfoPageVo> getMobilePage(Page<BaseStudentInfoPageVo> page, BaseStudentInfoPageDto dto);
  24. BaseStudentInfoDetailVo getInfoById(@Param("dto") BaseStudentInfoDetailDto dto);
  25. Boolean updateInfoByUserId(UpdateBaseStudentInfoDto dto, Long id);
  26. /**
  27. * 根据性别统计学生人数
  28. * @param dto
  29. * @return
  30. */
  31. List<BaseStudentInfoCategoryVo> getGenderCount(@Param("dto") BaseStudentInfoPageDto dto);
  32. /**
  33. * 根据就读方式统计学生人数
  34. * @param dto
  35. * @return
  36. */
  37. List<BaseStudentInfoCategoryVo> getStudyStatusCount(@Param("dto") BaseStudentInfoPageDto dto);
  38. @Update("UPDATE base_student_school_roll SET class_id = #{classId} where user_id = #{userId}")
  39. Boolean updateStudentClass(Long classId, Long userId);
  40. String getClassNameByUserId(@Param("userId") Long userId);
  41. Long getClassIdByUserId(@Param("userId") Long userId);
  42. List<BaseStudentInfoPageVo> getStudyingList(BaseStudentInfoPageDto dto);
  43. }