Blame view

KnowledgeSubjectDictMapper.java 860 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
package com.meishu.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.meishu.model.AdministerDO;
import com.meishu.model.KnowledgeSubjectDictDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 学科字典表 Mapper 接口
 * </p>
 *
 * @author Tuyp
 * @since 2021-04-27
 */
@Repository
public interface KnowledgeSubjectDictMapper extends BaseMapper<KnowledgeSubjectDictDO> {


    /**
     * 查看某个科目下的老师
     */
    List<AdministerDO> getSubjectAdminister(Long subjectId,String userName);

    /**
     * 查看某个老师下的所有科目 分页  模糊搜索  subjectType subjectName
     */
    IPage<KnowledgeSubjectDictDO> getAdministerSubjects(IPage page, Long userId, String subjectType, String subjectName);

}