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

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

package yui.comn.mybatisx.extension.methods;

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 SoftListObjs extends AbstractSoftMethod { private static final long serialVersionUID = -5347007973680358700L; @Override public MappedStatement injectMappedStatement(Class mapperClass, Class modelClass, TableInfo tableInfo) { SoftSqlMethod sqlMethod = SoftSqlMethod.LIST_OBJS; String sql = String.format(sqlMethod.getSql(), sqlFirst(), sqlSelectObjsColumns(tableInfo), getDynamicTableName(tableInfo), sqlWhereEntityWrapper(true, tableInfo), sqlComment()); SqlSource sqlSource = languageDriver.createSqlSource(configuration, sql, modelClass); return addSelectMappedStatement(mapperClass, sqlMethod.getMethod(), sqlSource, Object.class); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy