Package com.github.yulichang.method.mp
Class SelectOne
java.lang.Object
com.baomidou.mybatisplus.core.injector.AbstractMethod
com.baomidou.mybatisplus.core.injector.methods.SelectOne
com.github.yulichang.method.mp.SelectOne
- All Implemented Interfaces:
com.baomidou.mybatisplus.core.toolkit.Constants,com.baomidou.mybatisplus.core.toolkit.StringPool,TableAlias,MPJBaseMethod,Serializable
public class SelectOne
extends com.baomidou.mybatisplus.core.injector.methods.SelectOne
implements TableAlias
selectOne 兼容MP原生方法
查询满足条件一条数据,为了精简注入方法,该方法采用 list.get(0) 处理后续不再使用
- See Also:
-
SelectOne- Serialized Form
-
Field Summary
Fields inherited from class com.baomidou.mybatisplus.core.injector.AbstractMethod
builderAssistant, configuration, languageDriver, logger, methodNameFields inherited from interface com.baomidou.mybatisplus.core.toolkit.Constants
AES, AES_CBC_CIPHER, ARRAY, AS, ASC, COLL, COLLECTION, COLUMN_MAP, COLUMN_MAP_IS_EMPTY, DEFAULT_BATCH_SIZE, DESC, ENTITY, ENTITY_DOT, LIMIT, LIST, MD5, MP_FILL_ET, MP_OPTLOCK_VERSION_ORIGINAL, MYBATIS_PLUS, ORDER_BY, Q_WRAPPER_SQL_COMMENT, Q_WRAPPER_SQL_FIRST, Q_WRAPPER_SQL_SELECT, U_WRAPPER_SQL_SET, WHERE, WRAPPER, WRAPPER_DOT, WRAPPER_EMPTYOFNORMAL, WRAPPER_EMPTYOFWHERE, WRAPPER_ENTITY, WRAPPER_ENTITY_DOT, WRAPPER_EXPRESSION_ORDER, WRAPPER_NONEMPTYOFENTITY, WRAPPER_NONEMPTYOFNORMAL, WRAPPER_NONEMPTYOFWHERE, WRAPPER_PARAM, WRAPPER_PARAM_MIDDLE, WRAPPER_SQLSEGMENTFields inherited from interface com.baomidou.mybatisplus.core.toolkit.StringPool
AMPERSAND, AND, ASTERISK, AT, BACK_SLASH, BACKTICK, BYTES_NEW_LINE, COLON, COMMA, CRLF, DASH, DOLLAR, DOLLAR_LEFT_BRACE, DOT, DOT_CLASS, DOT_JAVA, DOT_NEWLINE, DOT_XML, DOTDOT, EMPTY, EMPTY_ARRAY, EQUALS, EXCLAMATION_MARK, FALSE, HASH, HASH_LEFT_BRACE, HAT, HTML_AMP, HTML_GT, HTML_LT, HTML_NBSP, HTML_QUOTE, ISO_8859_1, LEFT_BRACE, LEFT_BRACKET, LEFT_CHEV, LEFT_SQ_BRACKET, N, NEWLINE, NO, NULL, NUM, OFF, ON, ONE, PERCENT, PIPE, PLUS, QUESTION_MARK, QUOTE, RETURN, RIGHT_BRACE, RIGHT_BRACKET, RIGHT_CHEV, RIGHT_SQ_BRACKET, SEMICOLON, SINGLE_QUOTE, SLASH, SPACE, SQL, STAR, TAB, TILDA, TRUE, UNDERSCORE, US_ASCII, UTF_8, Y, YES, ZERO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.ibatis.mapping.MappedStatementinjectMappedStatement(Class<?> mapperClass, Class<?> modelClass, com.baomidou.mybatisplus.core.metadata.TableInfo tableInfo) protected Stringprotected StringsqlOrderBy(com.baomidou.mybatisplus.core.metadata.TableInfo table) protected StringsqlSelectColumns(com.baomidou.mybatisplus.core.metadata.TableInfo table, boolean queryWrapper) protected StringsqlWhereEntityWrapper(boolean newLine, com.baomidou.mybatisplus.core.metadata.TableInfo table) Methods inherited from class com.baomidou.mybatisplus.core.injector.AbstractMethod
addDeleteMappedStatement, addDeleteMappedStatement, addInsertMappedStatement, addInsertMappedStatement, addMappedStatement, addMappedStatement, addSelectMappedStatementForOther, addSelectMappedStatementForOther, addSelectMappedStatementForTable, addSelectMappedStatementForTable, addUpdateMappedStatement, addUpdateMappedStatement, convertChooseEwSelect, convertIfEwParam, createSqlSource, filterTableFieldInfo, inject, optlockVersion, sqlCount, sqlFirst, sqlLogicSet, sqlSelectObjsColumns, sqlSet, sqlWhereByMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.yulichang.method.MPJBaseMethod
convertIf, convertIfProperty, formatLogicDeleteSql, getAllSqlWhere, getLogicDeleteSql, getSqlWhere, mpjConvertIf, mpjConvertIfEwParam, mpjConvertIfProperty, mpjGetAllSqlSet, mpjGetSqlSet, mpjGetSqlSet, mpjSqlOrderBy, mpjSqlSelectColumns, mpjSqlSet, mpjSqlWhereEntityWrapper, mpjTableNameMethods inherited from interface com.github.yulichang.method.mp.TableAlias
copyAndSetTableName, getTableName
-
Constructor Details
-
SelectOne
public SelectOne() -
SelectOne
-
-
Method Details
-
injectMappedStatement
public org.apache.ibatis.mapping.MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelClass, com.baomidou.mybatisplus.core.metadata.TableInfo tableInfo) - Overrides:
injectMappedStatementin classcom.baomidou.mybatisplus.core.injector.methods.SelectOne
-
sqlWhereEntityWrapper
protected String sqlWhereEntityWrapper(boolean newLine, com.baomidou.mybatisplus.core.metadata.TableInfo table) - Overrides:
sqlWhereEntityWrapperin classcom.baomidou.mybatisplus.core.injector.AbstractMethod
-
sqlSelectColumns
protected String sqlSelectColumns(com.baomidou.mybatisplus.core.metadata.TableInfo table, boolean queryWrapper) - Overrides:
sqlSelectColumnsin classcom.baomidou.mybatisplus.core.injector.AbstractMethod
-
sqlOrderBy
- Overrides:
sqlOrderByin classcom.baomidou.mybatisplus.core.injector.AbstractMethod
-
sqlComment
- Overrides:
sqlCommentin classcom.baomidou.mybatisplus.core.injector.AbstractMethod
-