package com.yd.csf.service.dao;

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.model.CommissionSqlTemplate;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

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

    IPage<ApiCommissionSqlTemplatePageResponse> page(@Param("page") Page<ApiCommissionSqlTemplatePageResponse> page,
                                                     @Param("request") ApiCommissionSqlTemplatePageRequest request);
}
