| | |
| | | } |
| | | } |
| | | |
| | | for (int j = 0; j < page.getRecords().size(); j++) { |
| | | if (page.getRecords().get(j).getWorkjurisdiction() != null && !page.getRecords().get(j).getWorkjurisdiction().equals("")) { |
| | | String[] split = page.getRecords().get(j).getJurisdiction().split(","); |
| | | List<String> list = Arrays.asList(split); |
| | | StringBuffer deptNameBuiffer = new StringBuffer(); |
| | | //数据匹配封装 |
| | | for (String deptId : list) { |
| | | for (DeptVo deptVo : xqVos) { |
| | | if (deptId.equals(deptVo.getId().toString())) { |
| | | deptNameBuiffer.append(deptVo.getDeptName()).append(","); |
| | | } |
| | | } |
| | | } |
| | | //封装部门名称数据 |
| | | if (deptNameBuiffer.length() > 0) { |
| | | page.getRecords().get(j).setWorkname(deptNameBuiffer.substring(0, deptNameBuiffer.length() - 1)); |
| | | } |
| | | } |
| | | } |
| | | |
| | | return R.data(page); |
| | | } |
| | | |