package cn.stylefeng.team.project.modular.businessrender.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

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

import static cn.stylefeng.team.project.api.constants.ProjectConstants.PROJECT_MYBATIS_PARAMS;

@SuppressWarnings("all")
public interface BusinessRenderMapper {

    List<Map<String, Object>> customFindPage(@Param("page") Page page, @Param("sql") String sql, @Param(PROJECT_MYBATIS_PARAMS) Map<String, Object> params);

    Map<String, Object> findOne(@Param("sql") String sql, @Param(PROJECT_MYBATIS_PARAMS) Map<String, Object> params);

    List<Map<String, Object>> findList(@Param("sql") String sql, @Param(PROJECT_MYBATIS_PARAMS) Map<String, Object> params);

    int executeDelete(@Param("sql") String sql, @Param(PROJECT_MYBATIS_PARAMS) Map<String, Object> params);

    int executeUpdate(@Param("sql") String sql, @Param(PROJECT_MYBATIS_PARAMS) Map<String, Object> params);

}
