package com.artfess.yhxt.businessdata.dao;

import com.artfess.uc.model.Org;
import com.artfess.yhxt.businessdata.model.Company;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 养护单位 Mapper 接口
 *
 * @company 阿特菲斯信息技术有限公司
 * @author wangping
 * @since 2021-08-05
 */
public interface CompanyDao extends BaseMapper<Company> {
    IPage<Company> getCompany(IPage<Company> convert2IPage, @Param(Constants.WRAPPER) Wrapper<Company> convert2Wrapper);

    List<Org> getOrgsByparentId(@Param("pid") String pid);
}
