package com.keao.edu.user.service;

import com.keao.edu.common.page.PageInfo;
import com.keao.edu.common.service.BaseService;
import com.keao.edu.user.entity.ExamOrganizationRelation;
import com.keao.edu.user.entity.Organization;
import com.keao.edu.user.page.ExamOrganizationRelationQueryInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;

public interface ExamOrganizationRelationService extends BaseService<Long, ExamOrganizationRelation> {

    /**
     * @describe 查询考级项目关联合作单位记录
     * @author Joburgess
     * @date 2020.06.28
     * @param queryInfo:
     * @return com.keao.edu.common.page.PageInfo<com.keao.edu.user.entity.ExamOrganizationRelation>
     */
    PageInfo<ExamOrganizationRelation> queryExamOrgans(ExamOrganizationRelationQueryInfo queryInfo);

    /**
     * @describe 更新考级项目与合作单位关联信息
     * @author Joburgess
     * @date 2020.06.18
     * @param examOrganizationRelation:
     * @return void
     */
    void updateExamOrganizationRelation(ExamOrganizationRelation examOrganizationRelation);

    /**
     * @describe 发送考级报名链接
     * @author Joburgess
     * @date 2020.06.18
     * @param examId:
     * @param organIds:
     * @return void
     */
    void sendUrl(Integer examId, String organIds);

    /**
     * @describe 获取未关联到考级项目的合作单位
     * @author Joburgess
     * @date 2020.07.03
     * @param queryInfo:
     * @return org.springframework.data.domain.Page<com.keao.edu.user.entity.Organization>
     */
    PageInfo<Organization> queryUnRelatedOrgans(ExamOrganizationRelationQueryInfo queryInfo);

}
