Skip to content

Commit cd817ff

Browse files
增加@Row关键字配置示例
1 parent 92a9cf1 commit cd817ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

APIJSON-Java-Server/APIJSONBoot/src/main/java/apijson/boot/DemoSQLConfig.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ public String getUserIdKey(String database, String schema, String table) {
7373
// return null; // return null 则不生成 id,一般用于数据库自增 id
7474
// }
7575
};
76+
77+
// 自定义where条件拼接
78+
//RAW_MAP.put("commentWhereItem1","`Comment`.`userId` = 38710 and `Comment`.`momentId` = 470");
79+
//RAW_MAP.put("commentWhereItem2","`Comment`.`toId` = 0");
7680
}
7781

7882

0 commit comments

Comments
 (0)