This commit is contained in:
admin 2021-05-21 18:15:26 +08:00
parent 909af5302c
commit 095e4cf20a
3 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ QQ群:1022221898
<dependency> <dependency>
<groupId>com.github.yulichang</groupId> <groupId>com.github.yulichang</groupId>
<artifactId>mybatis-plus-join</artifactId> <artifactId>mybatis-plus-join</artifactId>
<version>1.1.6</version> <version>1.1.7</version>
</dependency> </dependency>
``` ```
- Gradle - Gradle

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.github.yulichang</groupId> <groupId>com.github.yulichang</groupId>
<artifactId>mybatis-plus-join</artifactId> <artifactId>mybatis-plus-join</artifactId>
<version>1.1.6</version> <version>1.1.7</version>
<name>mybatis-plus-join</name> <name>mybatis-plus-join</name>
<description>An enhanced toolkit of Mybatis-Plus to simplify development.</description> <description>An enhanced toolkit of Mybatis-Plus to simplify development.</description>
<url>https://github.com/yulichang/mybatis-plus-join</url> <url>https://github.com/yulichang/mybatis-plus-join</url>

View File

@ -434,7 +434,7 @@ public abstract class MPJAbstractWrapper<T, Children extends MPJAbstractWrapper<
*/ */
protected final String formatParam(String mapping, Object param) { protected final String formatParam(String mapping, Object param) {
final String genParamName = Constants.WRAPPER_PARAM + paramNameSeq.incrementAndGet(); final String genParamName = Constants.WRAPPER_PARAM + paramNameSeq.incrementAndGet();
final String paramStr = getParamAlias() + Constants.WRAPPER_PARAM_MIDDLE + genParamName; final String paramStr = getParamAlias() + ".paramNameValuePairs." + genParamName;
paramNameValuePairs.put(genParamName, param); paramNameValuePairs.put(genParamName, param);
return SqlScriptUtils.safeParam(paramStr, mapping); return SqlScriptUtils.safeParam(paramStr, mapping);
} }
@ -553,7 +553,7 @@ public abstract class MPJAbstractWrapper<T, Children extends MPJAbstractWrapper<
*/ */
public Children setParamAlias(String paramAlias) { public Children setParamAlias(String paramAlias) {
Assert.notEmpty(paramAlias, "paramAlias can not be empty!"); Assert.notEmpty(paramAlias, "paramAlias can not be empty!");
Assert.isEmpty(paramNameValuePairs, "Please call this method before working!"); Assert.isTrue(CollectionUtils.isEmpty(paramNameValuePairs), "Please call this method before working!");
Assert.isNull(this.paramAlias, "Please do not call the method repeatedly!"); Assert.isNull(this.paramAlias, "Please do not call the method repeatedly!");
this.paramAlias = new SharedString(paramAlias); this.paramAlias = new SharedString(paramAlias);
return typedThis; return typedThis;