获取相关人员--studio
This commit is contained in:
+23
@@ -294,6 +294,15 @@ public class ProjectRelatedPersonnelServiceImpl extends ServiceImpl<ProjectRelat
|
|||||||
List<Map<String,Object>> lawEngineerList = new ArrayList<>();
|
List<Map<String,Object>> lawEngineerList = new ArrayList<>();
|
||||||
List<Map<String,Object>> certificationEngineerList = new ArrayList<>();
|
List<Map<String,Object>> certificationEngineerList = new ArrayList<>();
|
||||||
List<Map<String,Object>> engineeringInterfacePersonList = new ArrayList<>();
|
List<Map<String,Object>> engineeringInterfacePersonList = new ArrayList<>();
|
||||||
|
List<Map<String,Object>> studioPersonList = new ArrayList<>();
|
||||||
|
//项目的studio用户
|
||||||
|
LambdaQueryWrapper<ProjectLibraryBase> wrapper = new LambdaQueryWrapper<>();
|
||||||
|
wrapper.in(ProjectLibraryBase::getId,projectId);
|
||||||
|
List<ProjectLibraryBase> list = projectLibraryBaseService.list(wrapper);
|
||||||
|
String studioEngineer = "";
|
||||||
|
if(list.size() != 0){
|
||||||
|
studioEngineer = list.get(0).getStudioEngineer();
|
||||||
|
}
|
||||||
|
|
||||||
List<ProjectRelatedPersonnel> projectRelatedPersonnels = new ArrayList<>();
|
List<ProjectRelatedPersonnel> projectRelatedPersonnels = new ArrayList<>();
|
||||||
if(StringUtils.isNotBlank(dutyTerritory)){
|
if(StringUtils.isNotBlank(dutyTerritory)){
|
||||||
@@ -326,6 +335,7 @@ public class ProjectRelatedPersonnelServiceImpl extends ServiceImpl<ProjectRelat
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
userIdList.add(studioEngineer);
|
||||||
List<SysUser> sysUserList = new ArrayList<>();
|
List<SysUser> sysUserList = new ArrayList<>();
|
||||||
if(CollectionUtils.isNotEmpty(userIdList)){
|
if(CollectionUtils.isNotEmpty(userIdList)){
|
||||||
sysUserList = sysUserService.querySysUserListByIdList(userIdList);
|
sysUserList = sysUserService.querySysUserListByIdList(userIdList);
|
||||||
@@ -371,11 +381,23 @@ public class ProjectRelatedPersonnelServiceImpl extends ServiceImpl<ProjectRelat
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (StringUtils.isNotBlank(studioEngineer)) {
|
||||||
|
for (SysUser sysUser : sysUserList) {
|
||||||
|
if (StringUtils.equals(studioEngineer, sysUser.getId())) {
|
||||||
|
Map<String, Object> map = new HashMap<>();
|
||||||
|
map.put("name", sysUser.getUsername());
|
||||||
|
map.put("value", sysUser.getId());
|
||||||
|
studioPersonList.add(map);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
allPersonList.addAll(lawEngineerList);
|
allPersonList.addAll(lawEngineerList);
|
||||||
allPersonList.addAll(certificationEngineerList);
|
allPersonList.addAll(certificationEngineerList);
|
||||||
allPersonList.addAll(engineeringInterfacePersonList);
|
allPersonList.addAll(engineeringInterfacePersonList);
|
||||||
|
allPersonList.addAll(studioPersonList);
|
||||||
|
|
||||||
//把userId相同的用户进行去重。
|
//把userId相同的用户进行去重。
|
||||||
allPersonList = allPersonList.stream().collect(
|
allPersonList = allPersonList.stream().collect(
|
||||||
@@ -404,6 +426,7 @@ public class ProjectRelatedPersonnelServiceImpl extends ServiceImpl<ProjectRelat
|
|||||||
result.put("certificationEngineerList",certificationEngineerList);//认证
|
result.put("certificationEngineerList",certificationEngineerList);//认证
|
||||||
result.put("engineeringInterfacePersonList",engineeringInterfacePersonList);//接口人
|
result.put("engineeringInterfacePersonList",engineeringInterfacePersonList);//接口人
|
||||||
result.put("allPersonList",allPersonList);
|
result.put("allPersonList",allPersonList);
|
||||||
|
result.put("studioPersonList",studioPersonList);
|
||||||
// result.put("lawEngineerList",lawEngineerList);
|
// result.put("lawEngineerList",lawEngineerList);
|
||||||
// result.put("certificationEngineerList",certificationEngineerList);
|
// result.put("certificationEngineerList",certificationEngineerList);
|
||||||
// result.put("engineeringInterfacePersonList",engineeringInterfacePersonList);
|
// result.put("engineeringInterfacePersonList",engineeringInterfacePersonList);
|
||||||
|
|||||||
Reference in New Issue
Block a user