All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zodiac.mybatisplus.mapper.DynamicQueryMapper Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import org.zodiac.mybatisplus.binding.query.dynamic.DynamicSqlProvider;

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

/**
 * 通用联表查询Mapper。
 */
@Mapper
public interface DynamicQueryMapper {

    /**
     * 动态SQL查询。
     * 
     * @param ew 查询条件
     * @return 结果
     */
    @SelectProvider(type= DynamicSqlProvider.class, method="buildSqlForList")
    List> queryForList(@Param(Constants.WRAPPER) QueryWrapper ew);

    /**
     * 动态SQL查询。
     * 
     * @param page 分页对象
     * @param ew 查询条件
     * @return 结果
     */
    @SelectProvider(type= DynamicSqlProvider.class, method="buildSqlForListWithPage")
    IPage> queryForListWithPage(Page page, @Param(Constants.WRAPPER) QueryWrapper ew);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy