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.commissionsqltemplate.ApiCommissionSqlTemplatePageRequest;
import com.yd.csf.feign.response.commissionsqltemplate.ApiCommissionSqlTemplatePageResponse;
import com.yd.csf.service.dto.CommissionSqlTemplateDto;
import com.yd.csf.service.model.CommissionSqlTemplate;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * SQL模板表 - 存储所有佣金计算相关的动态SQL模板，支持灵活配置和参数化查询，实现业务逻辑与代码解耦 服务类
 * </p>
 *
 * @author zxm
 * @since 2025-10-15
 */
public interface ICommissionSqlTemplateService extends IService<CommissionSqlTemplate> {

    IPage<ApiCommissionSqlTemplatePageResponse> page(Page<ApiCommissionSqlTemplatePageResponse> page,
                                                     ApiCommissionSqlTemplatePageRequest request);

    List<CommissionSqlTemplate> queryList(CommissionSqlTemplateDto dto);

    CommissionSqlTemplate queryOne(String sqlTemplateBizId);
}
