package com.mindskip.xzs.repository;
|
|
import com.mindskip.xzs.domain.Subject;
|
import com.mindskip.xzs.viewmodel.admin.subject.SubjectPageRequestVM;
|
import org.apache.ibatis.annotations.Mapper;
|
|
import java.util.List;
|
|
/**
|
* @version 2.2.0
|
* @description: 学科
|
* Copyright (C), 2020-2021, 武汉思维跳跃科技有限公司
|
* @date 2021 /9/7 9:45
|
*/
|
@Mapper
|
public interface SubjectMapper extends BaseMapper<Subject> {
|
int deleteByPrimaryKey(Integer id);
|
|
int insert(Subject record);
|
|
int insertSelective(Subject record);
|
|
Subject selectByPrimaryKey(Integer id);
|
|
int updateByPrimaryKeySelective(Subject record);
|
|
int updateByPrimaryKey(Subject record);
|
|
/**
|
* 根据年级获取学科
|
*
|
* @param level the level
|
* @return the subject by level
|
*/
|
List<Subject> getSubjectByLevel(Integer level);
|
|
/**
|
* 获取所有学科
|
*
|
* @return the list
|
*/
|
List<Subject> allSubject();
|
|
/**
|
* 学科分页
|
*
|
* @param requestVM the request vm
|
* @return the list
|
*/
|
List<Subject> page(SubjectPageRequestVM requestVM);
|
}
|