FieldDictMapper.java 799 Bytes
package com.subsidy.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.subsidy.dto.field.QueryFieldsDTO;
import com.subsidy.model.FieldDictDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 行业字典表 Mapper 接口
 * </p>
 *
 * @author DengMin
 * @since 2022-01-20
 */
@Repository
public interface FieldDictMapper extends BaseMapper<FieldDictDO> {

    IPage<FieldDictDO> queryFields(IPage ipage, String fieldName);

    /**
     * 查看公司所有的行业
     * @param companyId
     * @return
     */
    List<FieldDictDO> queryCompanyFields(Long companyId);

    /**
     * 查看课程所属行业
     */
    List<FieldDictDO> queryCourseFields(Long courseId);

}