AcademyDictMapper.java 1.09 KB
package com.subsidy.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.subsidy.model.AcademyDictDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.subsidy.model.AdministerDO;
import com.subsidy.vo.academy.AcademiesVO;
import com.subsidy.vo.academy.AcademyAccountVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 院校字典表 Mapper 接口
 * </p>
 *
 * @author Tuyp
 * @since 2024-02-23
 */
@Repository
public interface AcademyDictMapper extends BaseMapper<AcademyDictDO> {

    /**
     * 查看所有院校
     */
    IPage<AcademiesVO> academies(IPage iPage, String academyName);

    /**
     * 查看院校账号
     */
    IPage<AcademyAccountVO> academyAccount(IPage iPage, String academyName);

    /**
     * 查看账户关联的院校
     */
    List<AcademyDictDO> accountAcademies(Long administerId);

    /**
     * 查看账户关联的院校  返回id
     */
    List<Long> accountAcademyIds(Long administerId);

    /**
     * 查看院校主账号
     */
    AdministerDO mainAccount(Long academyId);

}