ServiceCompanyMappingMapper.java 1.05 KB
package com.subsidy.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.subsidy.model.ServiceCompanyMappingDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.subsidy.model.ServiceDictDO;
import com.subsidy.vo.service.GetServiceCompaniesVO;
import com.subsidy.vo.service.ServiceCompaniesVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 业务公司 映射表 Mapper 接口
 * </p>
 *
 * @author Tuyp
 * @since 2024-01-11
 */
@Repository
public interface ServiceCompanyMappingMapper extends BaseMapper<ServiceCompanyMappingDO> {


    IPage<GetServiceCompaniesVO> getServiceCompanies(IPage iPage, Long serviceId, String companyName, String authStatus);

    List<ServiceCompaniesVO> serviceCompanies(Long serviceId, String companyName);

    /**
     * 返回公司全部的业务
     */
    List<ServiceDictDO> companyService(Long companyId);

    /**
     * 返回公司授权给某个人的业务
     */
    List<ServiceDictDO> companyAdministerService(Long companyId, Long administerId);

}