|
@@ -7,6 +7,7 @@ import com.redxun.common.base.db.BaseDao;
|
|
|
import com.redxun.common.base.db.BaseService;
|
|
|
import com.redxun.common.base.db.PageHelper;
|
|
|
import com.redxun.common.base.search.QueryFilter;
|
|
|
+import com.redxun.common.model.JPaasUser;
|
|
|
import com.redxun.common.service.impl.SuperServiceImpl;
|
|
|
import com.redxun.common.tool.BeanUtil;
|
|
|
import com.redxun.common.tool.IdGenerator;
|
|
@@ -113,7 +114,9 @@ public class KnowledgeCategoryServiceImpl extends SuperServiceImpl<KnowledgeCate
|
|
|
} else {
|
|
|
e.setChildren(childrens);
|
|
|
childrens.forEach(h -> {
|
|
|
- h.setOperatorName(userService.queryUser(h.getUpdateBy()).getFullName());
|
|
|
+ //h.setOperatorName(userService.queryUser(h.getUpdateBy()).getFullName());
|
|
|
+ //h.setCreateByName(userService.queryUser(h.getCreateBy()).getFullName());
|
|
|
+ //h.setMaintainerName(userService.queryUser(h.getMaintainer()).getFullName());
|
|
|
// 把孩子节点放入集合中
|
|
|
childrenList.add(h.getPkId());
|
|
|
});
|
|
@@ -127,12 +130,21 @@ public class KnowledgeCategoryServiceImpl extends SuperServiceImpl<KnowledgeCate
|
|
|
knowledgeCategoryList.forEach(e -> {
|
|
|
e.setLevel(1);
|
|
|
e.setOperatorName(userService.queryUser(e.getUpdateBy()).getFullName());
|
|
|
+ e.setCreateByName(userService.queryUser(e.getCreateBy()).getFullName());
|
|
|
+ JPaasUser jPaasUser = userService.queryUser(e.getMaintainer());
|
|
|
+ if (jPaasUser != null){
|
|
|
+ e.setMaintainerName(jPaasUser.getFullName());
|
|
|
+ }
|
|
|
List<KnowledgeCategoryAdminVo> childrens = findChildrens(e,userId);
|
|
|
if (childrens.size() == 0) {
|
|
|
e.setChildren(null);
|
|
|
} else {
|
|
|
e.setChildren(childrens);
|
|
|
- childrens.forEach(h -> h.setOperatorName(userService.queryUser(h.getUpdateBy()).getFullName()));
|
|
|
+ //childrens.forEach(h -> {
|
|
|
+ // h.setOperatorName(userService.queryUser(h.getUpdateBy()).getFullName());
|
|
|
+ // h.setCreateByName(userService.queryUser(h.getCreateBy()).getFullName());
|
|
|
+ // h.setMaintainerName(userService.queryUser(h.getMaintainer()).getFullName());
|
|
|
+ //});
|
|
|
}
|
|
|
});
|
|
|
page.setRecords(knowledgeCategoryList);
|
|
@@ -299,6 +311,11 @@ public class KnowledgeCategoryServiceImpl extends SuperServiceImpl<KnowledgeCate
|
|
|
sorted(Comparator.comparingInt(KnowledgeCategoryAdminVo::getSort)).
|
|
|
map(e -> {
|
|
|
e.setOperatorName(userService.queryUser(e.getUpdateBy()).getFullName());
|
|
|
+ e.setCreateByName(userService.queryUser(e.getCreateBy()).getFullName());
|
|
|
+ JPaasUser jPaasUser = userService.queryUser(e.getMaintainer());
|
|
|
+ if (jPaasUser != null){
|
|
|
+ e.setMaintainerName(jPaasUser.getFullName());
|
|
|
+ }
|
|
|
return e;
|
|
|
}).
|
|
|
collect(Collectors.toList());
|