File tree 3 files changed +5
-5
lines changed
src/main/java/com/github/abel533
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public interface InsertUseGeneratedKeysMapper<T> {
44
44
*/
45
45
@ Options (useGeneratedKeys = true , keyProperty = "id" )
46
46
@ InsertProvider (type = SpecialProvider .class , method = "dynamicSQL" )
47
- int InsertUseGeneratedKeysMapper (T record );
47
+ int insertUseGeneratedKeys (T record );
48
48
49
49
/**
50
50
* ======如果主键不是id怎么用?==========
@@ -53,7 +53,7 @@ public interface InsertUseGeneratedKeysMapper<T> {
53
53
public interface InsertUidMapper<T> {
54
54
@Options(useGeneratedKeys = true, keyProperty = "id")
55
55
@InsertProvider(type = SpecialProvider.class, method = "dynamicSQL")
56
- int InsertUseGeneratedKeysMapper (T record);
56
+ int insertUseGeneratedKeys (T record);
57
57
}
58
58
* 只要修改keyProperty = "uid"就可以
59
59
*
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ public String insertList(MappedStatement ms) {
82
82
*
83
83
* @param ms
84
84
*/
85
- public String InsertUseGeneratedKeysMapper (MappedStatement ms ) {
85
+ public String insertUseGeneratedKeys (MappedStatement ms ) {
86
86
final Class <?> entityClass = getSelectReturnType (ms );
87
87
EntityHelper .EntityTable table = EntityHelper .getEntityTable (entityClass );
88
88
//开始拼sql
Original file line number Diff line number Diff line change @@ -127,14 +127,14 @@ Mapper3接口有两种形式,一种是提供了一个方法的接口。还有
127
127
说明:批量插入,支持批量插入的数据库可以使用,例如MySQL,H2等,另外该接口限制实体包含` id ` 属性并且必须为自增列<br ><br >
128
128
129
129
接口:` InsertUseGeneratedKeysMapper<T> ` <br >
130
- 方法:` int InsertUseGeneratedKeysMapper (T record); ` <br >
130
+ 方法:` int insertUseGeneratedKeys (T record); ` <br >
131
131
说明:插入数据,限制为实体包含` id ` 属性并且必须为自增列,实体配置的主键策略无效<br ><br >
132
132
133
133
##MySQL专用
134
134
135
135
接口:` MySqlMapper<T> ` <br >
136
136
继承方法:` int insertList(List<T> recordList); ` <br >
137
- 继承方法:` int InsertUseGeneratedKeysMapper (T record); ` <br >
137
+ 继承方法:` int insertUseGeneratedKeys (T record); ` <br >
138
138
说明:该接口不包含方法,继承了special中的` InsertListMapper<T> ` 和` InsertUseGeneratedKeysMapper<T> ` <br ><br >
139
139
140
140
##Mapper<T >接口
You can’t perform that action at this time.
0 commit comments