package com.clx.performance.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.clx.performance.mapper.PlatformAccountConfigMapper;
import com.clx.performance.model.PlatformAccountConfig;
import com.clx.performance.param.pc.carrier.PagePlatformAccountConfigParam;
import com.msl.common.dao.BaseDao;

import java.util.List;


public interface PlatformAccountConfigDao extends BaseDao<PlatformAccountConfigMapper, PlatformAccountConfig, Integer> {

    IPage<PlatformAccountConfig> pagePlatformAccountConfig(PagePlatformAccountConfigParam param);

    boolean deletePlatformAccountConfig(Integer id);

    boolean updatePlatformAccountConfig(PlatformAccountConfig platformAccountConfig);

    List<PlatformAccountConfig> checkPlatformAccountConfigOnly(PlatformAccountConfig config);

    List<PlatformAccountConfig> getPlatformAccountConfigByType(Integer businessType,
                                                               Integer ownerType,
                                                               Integer invoiceType,
                                                               Integer invoiceCompanyId,
                                                               Integer configRange);

}
