!33 update 方法命名优化

Merge pull request !33 from Robot.L/main
This commit is contained in:
Michael Yang 2023-05-16 10:35:27 +00:00 committed by Gitee
commit d454ff78d0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ public class BaseQueryWrapper<T> implements Serializable {
}
protected T AddJoin(Join join) {
protected T addJoin(Join join) {
if (joins == null) {
joins = new LinkedList<>();
}

View File

@ -267,13 +267,13 @@ public class QueryWrapper extends BaseQueryWrapper<QueryWrapper> {
protected Joiner<QueryWrapper> joining(String type, String table, boolean condition) {
Join join = new Join(type, table, condition);
addJoinTable(join.getQueryTable());
return new Joiner<>(AddJoin(join), join);
return new Joiner<>(addJoin(join), join);
}
protected Joiner<QueryWrapper> joining(String type, QueryWrapper queryWrapper, boolean condition) {
Join join = new Join(type, queryWrapper, condition);
addJoinTable(join.getQueryTable());
return new Joiner<>(AddJoin(join), join);
return new Joiner<>(addJoin(join), join);
}