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

yui.comn.mybatisx.extension.methods.SoftListMaps Maven / Gradle / Ivy

package yui.comn.mybatisx.extension.methods;

import java.util.Map;

import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.mapping.SqlSource;

import com.baomidou.mybatisplus.core.metadata.TableInfo;

import yui.comn.mybatisx.core.enums.SoftSqlMethod;

/**
 * 

* 根据 queryWrapper 条件查询多条数据 *

* * @author yuyi ([email protected]) */ public class SoftListMaps extends AbstractSoftMethod { private static final long serialVersionUID = 7777520026736610719L; @Override public MappedStatement injectMappedStatement(Class mapperClass, Class modelClass, TableInfo tableInfo) { SoftSqlMethod sqlMethod = SoftSqlMethod.LIST_MAPS; String sql = String.format(sqlMethod.getSql(), sqlFirst(), sqlSelectColumns(tableInfo, true), getDynamicTableName(tableInfo), sqlWhereEntityWrapper(true, tableInfo), sqlComment()); SqlSource sqlSource = languageDriver.createSqlSource(configuration, sql, modelClass); return addSelectMappedStatement(mapperClass, sqlMethod.getMethod(), sqlSource, Map.class); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy