67382 获取用户在法规清单中角色切换的数据修改。
This commit is contained in:
+5
-7
@@ -9931,8 +9931,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
}
|
||||
}
|
||||
}
|
||||
if((StringUtils.isNotBlank(certificationEngineerName) && certificationEngineerName.contains(loginUser.getUsername()))
|
||||
|| lawEngineerNameList.contains(loginUser.getUsername())){
|
||||
if(lawEngineerNameList.contains(loginUser.getUsername())){
|
||||
SysRole sysRole = new SysRole();
|
||||
sysRole.setRoleCode(com.jero.modules.system.enums.ProjectRoleEnum.REGULATI_ENGINEER.getValue());
|
||||
if(StringUtils.equals(cut,CutEnum.CN.getValue())){
|
||||
@@ -9942,7 +9941,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
}
|
||||
sysRoles.add(sysRole);
|
||||
}
|
||||
List<String> certificationEngineerList = new ArrayList<>();
|
||||
/*List<String> certificationEngineerList = new ArrayList<>();
|
||||
if(projectRelatedPersonnels.size() != 0){
|
||||
for(ProjectRelatedPersonnel projectRelatedPersonnel : projectRelatedPersonnels){
|
||||
String certificationEngineerName1 = projectRelatedPersonnel.getCertificationEngineerName();
|
||||
@@ -9962,7 +9961,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
sysRole.setRoleName(com.jero.modules.system.enums.ProjectRoleEnum.HOMOLOGATION_ENGINEER.getCode());
|
||||
}
|
||||
sysRoles.add(sysRole);
|
||||
}
|
||||
}*/
|
||||
|
||||
List<String> engineeringInterfacePersonList = new ArrayList<>();
|
||||
if(projectRelatedPersonnels.size() != 0){
|
||||
@@ -9970,12 +9969,11 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
|
||||
String engineeringInterfacePerson = projectRelatedPersonnel.getEngineeringInterfacePersonName();
|
||||
if(StringUtils.isNotBlank(engineeringInterfacePerson)){
|
||||
engineeringInterfacePerson = engineeringInterfacePerson.replaceAll(" ","");
|
||||
certificationEngineerList.addAll(Arrays.asList(engineeringInterfacePerson.split(",")));
|
||||
engineeringInterfacePersonList.addAll(Arrays.asList(engineeringInterfacePerson.split(",")));
|
||||
}
|
||||
}
|
||||
}
|
||||
if((StringUtils.isNotBlank(certificationEngineerName) && certificationEngineerName.contains(loginUser.getUsername()))
|
||||
|| engineeringInterfacePersonList.contains(loginUser.getUsername())){
|
||||
if(engineeringInterfacePersonList.contains(loginUser.getUsername())){
|
||||
SysRole sysRole = new SysRole();
|
||||
sysRole.setRoleCode(com.jero.modules.system.enums.ProjectRoleEnum.INTERFACE_PERSON1.getValue());
|
||||
if(StringUtils.equals(cut,CutEnum.CN.getValue())){
|
||||
|
||||
Reference in New Issue
Block a user