@@ -65,10 +65,10 @@ public DemoSQLConfig(RequestMethod method, String table) {
65
65
// TABLE_KEY_MAP.put(Privacy.class.getSimpleName(), "apijson_privacy");
66
66
67
67
//主键名映射
68
- SIMPLE_CALLBACK = new SimpleCallback () {
68
+ SIMPLE_CALLBACK = new SimpleCallback < Long > () {
69
69
70
70
@ Override
71
- public AbstractSQLConfig getSQLConfig (RequestMethod method , String database , String schema , String table ) {
71
+ public AbstractSQLConfig getSQLConfig (RequestMethod method , String database , String schema , String datasource , String table ) {
72
72
return new DemoSQLConfig (method , table );
73
73
}
74
74
@@ -81,13 +81,13 @@ public AbstractSQLConfig getSQLConfig(RequestMethod method, String database, Str
81
81
// }
82
82
83
83
@ Override
84
- public String getUserIdKey (String database , String schema ,String datasource , String table ) {
84
+ public String getUserIdKey (String database , String schema , String datasource , String table ) {
85
85
return USER_ .equals (table ) || PRIVACY_ .equals (table ) ? ID : USER_ID ; // id / userId
86
86
}
87
87
88
88
//取消注释来实现数据库自增 id
89
89
// @Override
90
- // public Object newId(RequestMethod method, String database, String schema, String datasource, String table) {
90
+ // public Long newId(RequestMethod method, String database, String schema, String datasource, String table) {
91
91
// return null; // return null 则不生成 id,一般用于数据库自增 id
92
92
// }
93
93
0 commit comments