@Override public List<OrganDeptBo> getChildNodes(String processName, String deptId) { String result = portalUtil.getChildNodes(deptId); String deptIds = ""; List<OrganDeptBo> list = null; Map<String, String> reMap = null; Map<String, String> ldMap = null; if (!"error".equals(result)) { list = this.getDeptList(result); for (OrganDeptBo bo : list) { deptIds += bo.id + ","; } deptIds = deptIds.substring(0, deptIds.length() - 1); reMap = getDeptReceiversMap(processName, "部门接受人工作分发", deptIds); ldMap = getDeptSingleLeaderMap(deptIds); for (OrganDeptBo bo : list) { bo.isParent = false; if (reMap.containsKey(bo.id)) { bo.recvLoginName = reMap.get(bo.id).split(",")[0]; bo.recvName = reMap.get(bo.id).split(",")[1]; } else { bo.recvLoginName = ""; bo.recvName = ""; } if (ldMap.containsKey(bo.id)) { bo.ldLoginName = ldMap.get(bo.id).split(",")[0]; bo.ldName = ldMap.get(bo.id).split(",")[1]; } else { bo.ldLoginName = ""; bo.ldName = ""; } } } return list; }
public List<OrganLeaderBo> getComLeaderInfo(String type) { String result = portalUtil.getComLeaderInfo("", ""); if (!"error".equals(result)) { return this.getComLeaderList(result); } return null; }
@Override public List<OrganDeptBo> getNodesInfo(String deptIds) { String result = portalUtil.getNodesInfo(deptIds); if (!"error".equals(result)) { return this.getDeptList(result); } return null; }
@Override public List<OrganUserBo> getReceivers(String processName, String stepName, String deptIds) { // String deptIdStr = CommonUtil.listToStringBySplit(deptIds); String result = portalUtil.getReceivers(processName, stepName, deptIds); if (!"error".equals(result)) { return this.getUserList(result); } return null; }
@Override public List<OrganUserBo> getDeptUsersOffLeaders(String deptIdStr) { // String deptIdStr = CommonUtil.listToStringBySplit(deptIds); String result = portalUtil.getDeptUsersOffLeaders(deptIdStr); if (!"error".equals(result)) { return this.getUserList(result); } return null; }
@Override public void setToken(String token) { this.token = token; portalUtil.setToken(token); }