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

import com.baomidou.mybatisplus.core.metadata.IPage;
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 Tuyp
 * @since 2024-01-11
 */
 @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);

}