package com.yuchen.saas.park.service.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuchen.saas.park.api.entity.park.PmgBatParkCompany;
import org.nest.springwrap.core.mp.base.BaseService;
import org.nest.springwrap.core.mp.support.Query;

import java.util.List;

/**
 * @author 吕海泉
 * @create 2020/12/7 15:14
 */
public interface IParkCompanyService extends BaseService<PmgBatParkCompany> {

    /**
     * 根据设备信息 查询关联的企业信息
     * @param productKey
     * @param deviceName
     * @return
     */
    List<PmgBatParkCompany> getCompanyByPKAndDN(String productKey, String deviceName);

    /**
     * 根据条件获取公司分页数据
     * @param pmgBatParkCompany 过滤的公司信息
     * @param query 分页数据
     * @return
     */
    IPage<PmgBatParkCompany> getPage(PmgBatParkCompany pmgBatParkCompany, Query query);

    /**
     * 根据园区ID获取所有的公司列表
     * @param parkId 园区ID
     * @return
     */
    List<PmgBatParkCompany> getByParkId(Long parkId);
}
