package com.yd.csf.service.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yd.csf.feign.request.conditionconfig.ApiConditionConfigPageRequest;
import com.yd.csf.feign.response.conditionconfig.ApiConditionConfigPageResponse;
import com.yd.csf.service.dto.ConditionConfigDto;
import com.yd.csf.service.model.ConditionConfig;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 条件配置表 服务类
 * </p>
 *
 * @author zxm
 * @since 2025-10-17
 */
public interface IConditionConfigService extends IService<ConditionConfig> {

    IPage<ApiConditionConfigPageResponse> page(Page<ApiConditionConfigPageResponse> page,
                                               ApiConditionConfigPageRequest request);

    List<Map<String, Object>> selectBrokerRatioByBizIds(List<String> brokerBizIds);

    ConditionConfig queryOne(String conditionBizId);

    List<ConditionConfig> queryList(ConditionConfigDto dto);
}
