mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
style: 添加注释说明。
This commit is contained in:
parent
bbb1412ba9
commit
1e603a0350
@ -275,11 +275,11 @@ public class BaseQueryWrapper<T extends BaseQueryWrapper<T>> implements CloneSup
|
|||||||
clone.havingQueryCondition = ObjectUtil.clone(this.havingQueryCondition);
|
clone.havingQueryCondition = ObjectUtil.clone(this.havingQueryCondition);
|
||||||
clone.orderBys = CollectionUtil.cloneArrayList(this.orderBys);
|
clone.orderBys = CollectionUtil.cloneArrayList(this.orderBys);
|
||||||
clone.unions = CollectionUtil.cloneArrayList(this.unions);
|
clone.unions = CollectionUtil.cloneArrayList(this.unions);
|
||||||
|
// copy List if necessary ...
|
||||||
if (this.endFragments != null){
|
if (this.endFragments != null){
|
||||||
clone.endFragments = CollectionUtil.newArrayList(this.endFragments);
|
clone.endFragments = CollectionUtil.newArrayList(this.endFragments);
|
||||||
}
|
}
|
||||||
|
// copy Map if necessary ...
|
||||||
if (this.context != null){
|
if (this.context != null){
|
||||||
clone.context = CollectionUtil.newHashMap(this.context);
|
clone.context = CollectionUtil.newHashMap(this.context);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,6 +24,7 @@ public class ObjectUtil {
|
|||||||
private ObjectUtil() {}
|
private ObjectUtil() {}
|
||||||
|
|
||||||
public static Object cloneObject(Object value) {
|
public static Object cloneObject(Object value) {
|
||||||
|
// ROLE.ROLE_ID.ge(USER.USER_ID)
|
||||||
if (value instanceof CloneSupport) {
|
if (value instanceof CloneSupport) {
|
||||||
return ((CloneSupport<?>) value).clone();
|
return ((CloneSupport<?>) value).clone();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user