package com.ym.mec.biz.service;

import com.ym.mec.biz.dal.entity.School;
import com.ym.mec.biz.dal.page.SchoolQueryInfo;
import com.ym.mec.common.page.PageInfo;
import com.ym.mec.common.service.BaseService;

import java.util.List;

public interface SchoolService extends BaseService<Integer, School> {

    /**
     * 根据机构编号获取合作单位列表
     * @param organId
     * @return
     */
    List<School> queryByOrganId(String organId);

    /**
     * @describe 根据教师编号删除对应教学点
     * @author Joburgess
     * @date 2020/1/3
     * @param schoolId: 教学点编号
     * @param userId: 用户编号
     * @return void
     */
    void deleteByTeacherAndId(Integer schoolId,Integer userId);

    /**
     * @describe 获取教师vip课教学点
     * @author Joburgess
     * @date 2019/10/19
     * @param teacherId:
     * @return java.util.List<com.ym.mec.biz.dal.entity.School>
     */
    List<School> findVipSchoolByTeacher(Integer teacherId,String organId,Integer isDefault);

    /**
     * @describe 获取教师vip课教学点
     * @author Joburgess
     * @date 2019/10/19
     * @param teacherId:
     * @return java.util.List<com.ym.mec.biz.dal.entity.School>
     */
    List<School> findVipSchoolByTeacher(Integer teacherId,String organId);

    PageInfo<School> queryPageDetail(SchoolQueryInfo queryInfo);
}
