提交 95510645 编写于 作者: O o2null

Merge branch 'fix/群组查询部分接口缺少身份信息' into 'develop'

【人员组织】修复部分群组查询接口缺少身份信息的问题 to develop

See merge request o2oa/o2oa!1032

(cherry picked from commit acc2907f)

102336b5 修复部分群组查询接口缺少身份信息的问题
上级 c395c6f5
......@@ -24,6 +24,8 @@ public class Group extends GsonPropertyObject {
private List<String> groupList = new ArrayList<>();
@FieldDescribe("组织成员")
private List<String> unitList = new ArrayList<>();
@FieldDescribe("身份成员")
private List<String> identityList = new ArrayList<>();
public String getName() {
return name;
......@@ -89,4 +91,11 @@ public class Group extends GsonPropertyObject {
this.unitList = unitList;
}
public List<String> getIdentityList() {
return identityList;
}
public void setIdentityList(List<String> identityList) {
this.identityList = identityList;
}
}
......@@ -10,6 +10,7 @@ import com.x.base.core.project.tools.ListTools;
import com.x.organization.assemble.express.Business;
import com.x.organization.assemble.express.CacheFactory;
import com.x.organization.core.entity.Group;
import com.x.organization.core.entity.Identity;
import com.x.organization.core.entity.Person;
import com.x.organization.core.entity.Unit;
......@@ -60,6 +61,12 @@ class BaseAction extends StandardJaxrsAction {
t.getUnitList().add(o.getDistinguishedName());
}
}
if (ListTools.isNotEmpty(group.getIdentityList())) {
for (String str : group.getIdentityList()) {
Identity o = business.identity().pick(str);
t.getIdentityList().add(o.getDistinguishedName());
}
}
return t;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册