Skip to content

Commit

Permalink
升级1.4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
qmdx committed Oct 12, 2016
1 parent 4ffb3ca commit da09125
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 0 additions & 4 deletions mybatis-plus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
</scm>

<properties>
<!--
<gpg.keyname>F4B46FB9</gpg.keyname>
-->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<mybatis-spring.version>1.3.0</mybatis-spring.version>
<mybatis.version>3.4.1</mybatis.version>
Expand Down Expand Up @@ -160,11 +158,9 @@
<goals>
<goal>jar</goal>
</goals>
<!--
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
-->
</execution>
</executions>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -694,20 +694,22 @@ protected String convertIfTag(SqlCommandType sqlCommandType, TableFieldInfo fiel
if (sqlCommandType == SqlCommandType.INSERT && fieldInfo.getFieldStrategy() == FieldStrategy.FILL) {
return "";
}
if (fieldInfo.getFieldStrategy() == FieldStrategy.NOT_NULL) {
if (fieldInfo.getFieldStrategy() == FieldStrategy.IGNORED) {
return "";
} else if (fieldInfo.getFieldStrategy() == FieldStrategy.NOT_EMPTY) {
if (colse) {
return "</if>";
} else {
return String.format("\n\t<if test=\"%s!=null\">", property);
return String.format("\n\t<if test=\"%s!=null and %s!=''\">", property, property);
}
} else if (fieldInfo.getFieldStrategy() == FieldStrategy.NOT_EMPTY) {
} else {
//FieldStrategy.NOT_NULL
if (colse) {
return "</if>";
} else {
return String.format("\n\t<if test=\"%s!=null and %s!=''\">", property, property);
return String.format("\n\t<if test=\"%s!=null\">", property);
}
}
return "";
}

protected String convertIfTagInsert(TableFieldInfo fieldInfo, boolean colse) {
Expand Down

0 comments on commit da09125

Please sign in to comment.