update 方法命名优化

This commit is contained in:
luozhan 2023-05-16 18:10:54 +08:00
parent f2f6846ed4
commit cfb77c493c
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) { if (joins == null) {
joins = new LinkedList<>(); 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) { protected Joiner<QueryWrapper> joining(String type, String table, boolean condition) {
Join join = new Join(type, table, condition); Join join = new Join(type, table, condition);
addJoinTable(join.getQueryTable()); 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) { protected Joiner<QueryWrapper> joining(String type, QueryWrapper queryWrapper, boolean condition) {
Join join = new Join(type, queryWrapper, condition); Join join = new Join(type, queryWrapper, condition);
addJoinTable(join.getQueryTable()); addJoinTable(join.getQueryTable());
return new Joiner<>(AddJoin(join), join); return new Joiner<>(addJoin(join), join);
} }