|
@@ -35,6 +35,7 @@ public class DepartmentServiceImpl implements DepartmentService {
|
|
|
List<DepartMentDto> copy = null;
|
|
|
List<String> ids = null;
|
|
|
List<String> names = null;
|
|
|
+ List<String> phones = null;
|
|
|
List<Map<String, Object>> maps = new ArrayList<>();
|
|
|
int i = 0;
|
|
|
for (DepartMentDto department : departments) {
|
|
@@ -45,21 +46,25 @@ public class DepartmentServiceImpl implements DepartmentService {
|
|
|
map.put("DepartMentDto", copy.get(0));
|
|
|
map.put("kgyIds", ids);
|
|
|
map.put("kgyNames", names);
|
|
|
+ map.put("phones", phones);
|
|
|
maps.add(map);
|
|
|
}
|
|
|
copy = new ArrayList<>();
|
|
|
ids = new ArrayList<>();
|
|
|
names = new ArrayList<>();
|
|
|
+ phones = new ArrayList<>();
|
|
|
}
|
|
|
copy.add(department);
|
|
|
ids.add(Convert.toStr(department.getDutyId()));
|
|
|
names.add(department.getPersonName());
|
|
|
+ phones.add(department.getTelPhone());
|
|
|
i++;
|
|
|
}
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("DepartMentDto", copy.get(0));
|
|
|
map.put("kgyIds", ids);
|
|
|
map.put("kgyNames", names);
|
|
|
+ map.put("phones", phones);
|
|
|
maps.add(map);
|
|
|
|
|
|
return maps;
|