Commit ea8ed31a authored by ZWT's avatar ZWT

得到的

parent 9d7b4a5d
package pps.core.system.service; package pps.core.system.service;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil; import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
...@@ -62,8 +63,7 @@ public class SysAreaService { ...@@ -62,8 +63,7 @@ public class SysAreaService {
} }
return XListResult.success(resultTree); return XListResult.success(resultTree);
} }
List<GetSysAreaViewOutputTree> resultTree = XCopyUtils.copyNewList(sysAreaCaches, GetSysAreaViewOutputTree.class); return XListResult.success(BeanUtil.copyToList(sysAreaCaches, GetSysAreaViewOutputTree.class));
return XListResult.success(resultTree);
} }
private List<SysAreaCache> selectSysAreaTree(XContext context, GetSysAreaInput input) { private List<SysAreaCache> selectSysAreaTree(XContext context, GetSysAreaInput input) {
......
package pps.core.system.service.data.sys_area; package pps.core.system.service.data.sys_area;
import lombok.Data;
import xstartup.annotation.XText; import xstartup.annotation.XText;
import java.io.Serializable;
import java.util.List; import java.util.List;
public class GetSysAreaViewOutputTree { @Data
public class GetSysAreaViewOutputTree implements Serializable {
private static final long serialVersionUID = -348031788223716089L;
private Integer id; private Integer id;
private String name; private String name;
...@@ -15,45 +21,4 @@ public class GetSysAreaViewOutputTree { ...@@ -15,45 +21,4 @@ public class GetSysAreaViewOutputTree {
@XText("子集") @XText("子集")
private List<GetSysAreaViewOutputTree> children; private List<GetSysAreaViewOutputTree> children;
public List<GetSysAreaViewOutputTree> getChildren() {
return children;
}
public void setChildren(List<GetSysAreaViewOutputTree> children) {
this.children = children;
}
public Integer getId() {
return this.id;
}
public void setId(Integer value) {
this.id = value;
}
public String getName() {
return this.name;
}
public void setName(String value) {
this.name = value;
}
public Integer getParentId() {
return this.parentId;
}
public void setParentId(Integer value) {
this.parentId = value;
}
public Integer getLev() {
return this.lev;
}
public void setLev(Integer value) {
this.lev = value;
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment