Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
abel533 committed May 19, 2024
1 parent 82ca7be commit 9dff28c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<groupId>io.mybatis</groupId>
<artifactId>mybatis-provider</artifactId>
<version>2.2.4</version>
<version>2.2.5-SNAPSHOT</version>

<name>MyBatis Provider</name>
<description>MyBatis Provider 扩展</description>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/mybatis/provider/EntityColumn.java
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public String notEmptyTest(String prefix) {
* 当前字段是否设置了主键策略
*/
public boolean hasPrimaryKeyStrategy() {
return id && (useGeneratedKeys || (afterSql != null && !afterSql.isEmpty()) || genId != GenId.NULL.class);
return id && (useGeneratedKeys || (afterSql != null && !afterSql.isEmpty()) || (genId != null && genId != GenId.NULL.class));
}
//</editor-fold>

Expand Down

0 comments on commit 9dff28c

Please sign in to comment.