File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ Maven引用:
4545<dependency >
4646 <groupId >com.itfsw</groupId >
4747 <artifactId >mybatis-generator-plugin</artifactId >
48- <version >1.3.6 </version >
48+ <version >1.3.7 </version >
4949</dependency >
5050```
5151---------------------------------------
@@ -100,7 +100,7 @@ targetCompatibility = 1.8
100100
101101
102102def mybatisGeneratorCore = 'org.mybatis.generator:mybatis-generator-core:1.3.7'
103- def itfswMybatisGeneratorPlugin = 'com.itfsw:mybatis-generator-plugin:1.3.6 '
103+ def itfswMybatisGeneratorPlugin = 'com.itfsw:mybatis-generator-plugin:1.3.7 '
104104
105105mybatisGenerator {
106106 verbose = false
@@ -1632,8 +1632,8 @@ public class Test {
16321632 .id(102 )
16331633 .field4(new Date ())
16341634 .build()
1635- .increment(Tb . Column . field1. inc(1 )) // 字段1 统计增加1
1636- .increment(Tb . Column . field2. dec(2 )); // 字段2 统计减去2
1635+ .increment(Tb . Increment . field1. inc(1 )) // 字段1 统计增加1
1636+ .increment(Tb . Increment . field2. dec(2 )); // 字段2 统计减去2
16371637 // 更新操作,可以是 updateByExample, updateByExampleSelective, updateByPrimaryKey
16381638 // , updateByPrimaryKeySelective, upsert, upsertSelective等所有涉及更新的操作
16391639 this . tbMapper. updateByPrimaryKey(tb);
You can’t perform that action at this time.
0 commit comments