diff --git a/README.md b/README.md index 08a5bc4..1a108eb 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Mybatis SQL开发神器MybatisBoost,包含通用CrudMapper、Mybatis语法增 cn.mybatisboost mybatis-boost-spring-boot-starter - 1.2.0 + 1.2.1 ``` diff --git a/mybatis-boost-all/pom.xml b/mybatis-boost-all/pom.xml index c822702..f8866b4 100644 --- a/mybatis-boost-all/pom.xml +++ b/mybatis-boost-all/pom.xml @@ -7,7 +7,7 @@ cn.mybatisboost mybatis-boost - 1.2.0 + 1.2.1 pom diff --git a/mybatis-boost-core/pom.xml b/mybatis-boost-core/pom.xml index 05c4ad9..003d325 100644 --- a/mybatis-boost-core/pom.xml +++ b/mybatis-boost-core/pom.xml @@ -7,7 +7,7 @@ cn.mybatisboost mybatis-boost - 1.2.0 + 1.2.1 mybatis-boost-core diff --git a/mybatis-boost-lang/pom.xml b/mybatis-boost-lang/pom.xml index d1e792e..6523527 100644 --- a/mybatis-boost-lang/pom.xml +++ b/mybatis-boost-lang/pom.xml @@ -7,7 +7,7 @@ cn.mybatisboost mybatis-boost - 1.2.0 + 1.2.1 mybatis-boost-lang diff --git a/mybatis-boost-limiter/pom.xml b/mybatis-boost-limiter/pom.xml index 3f8b88a..f2af559 100644 --- a/mybatis-boost-limiter/pom.xml +++ b/mybatis-boost-limiter/pom.xml @@ -7,7 +7,7 @@ cn.mybatisboost mybatis-boost - 1.2.0 + 1.2.1 mybatis-boost-limiter diff --git a/mybatis-boost-mapper/pom.xml b/mybatis-boost-mapper/pom.xml index 7b38c69..c1bb146 100644 --- a/mybatis-boost-mapper/pom.xml +++ b/mybatis-boost-mapper/pom.xml @@ -7,7 +7,7 @@ cn.mybatisboost mybatis-boost - 1.2.0 + 1.2.1 mybatis-boost-mapper diff --git a/mybatis-boost-mapper/src/main/java/cn/mybatisboost/mapper/provider/mysql/Save.java b/mybatis-boost-mapper/src/main/java/cn/mybatisboost/mapper/provider/mysql/Save.java index 732b69b..ae37212 100644 --- a/mybatis-boost-mapper/src/main/java/cn/mybatisboost/mapper/provider/mysql/Save.java +++ b/mybatis-boost-mapper/src/main/java/cn/mybatisboost/mapper/provider/mysql/Save.java @@ -23,7 +23,7 @@ public void replace(MetaObject metaObject, MappedStatement mappedStatement, Boun StringBuilder builder = new StringBuilder(sql); builder.append(" ON DUPLICATE KEY UPDATE "); Arrays.stream(matcher.group(1).split(", ")) - .forEach(it -> builder.append(it).append(" = ").append(it).append(", ")); + .forEach(it -> builder.append(it).append(" = VALUES(").append(it).append("), ")); builder.setLength(builder.length() - 2); metaObject.setValue("delegate.boundSql.sql", builder.toString()); } diff --git a/mybatis-boost-metric/pom.xml b/mybatis-boost-metric/pom.xml index 790263c..faf2f3e 100644 --- a/mybatis-boost-metric/pom.xml +++ b/mybatis-boost-metric/pom.xml @@ -7,7 +7,7 @@ cn.mybatisboost mybatis-boost - 1.2.0 + 1.2.1 mybatis-boost-metric diff --git a/mybatis-boost-spring-boot-autoconfigure/pom.xml b/mybatis-boost-spring-boot-autoconfigure/pom.xml index 4463fac..64d7051 100644 --- a/mybatis-boost-spring-boot-autoconfigure/pom.xml +++ b/mybatis-boost-spring-boot-autoconfigure/pom.xml @@ -7,7 +7,7 @@ cn.mybatisboost mybatis-boost - 1.2.0 + 1.2.1 mybatis-boost-spring-boot-autoconfigure diff --git a/mybatis-boost-spring-boot-starter/pom.xml b/mybatis-boost-spring-boot-starter/pom.xml index 1cf3ebd..d23f477 100644 --- a/mybatis-boost-spring-boot-starter/pom.xml +++ b/mybatis-boost-spring-boot-starter/pom.xml @@ -7,7 +7,7 @@ cn.mybatisboost mybatis-boost - 1.2.0 + 1.2.1 mybatis-boost-spring-boot-starter diff --git a/mybatis-boost-test/pom.xml b/mybatis-boost-test/pom.xml index 6f7bad2..3769a66 100644 --- a/mybatis-boost-test/pom.xml +++ b/mybatis-boost-test/pom.xml @@ -7,7 +7,7 @@ cn.mybatisboost mybatis-boost - 1.2.0 + 1.2.1 mybatis-boost-test diff --git a/pom.xml b/pom.xml index 676d02a..78e159e 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ cn.mybatisboost mybatis-boost - 1.2.0 + 1.2.1 pom MybatisBoost @@ -48,7 +48,7 @@ UTF-8 - 1.2.0 + 1.2.1