获取认证工程师角色权限逻辑修改
This commit is contained in:
+10
-2
@@ -156,10 +156,18 @@ public class ProjectCertificationDirectoryEOServiceImpl extends ServiceImpl<Proj
|
||||
int result = -1;
|
||||
LoginUser currentUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
try{
|
||||
QueryWrapper<ProjectLawsInventoryEO> inventoryEOQueryWrapperRZ = new QueryWrapper<>();
|
||||
/*QueryWrapper<ProjectLawsInventoryEO> inventoryEOQueryWrapperRZ = new QueryWrapper<>();
|
||||
inventoryEOQueryWrapperRZ.lambda().eq(ProjectLawsInventoryEO::getProjectLibraryId,projectLibraryId);
|
||||
inventoryEOQueryWrapperRZ.lambda().eq(ProjectLawsInventoryEO::getHomologationEngineerId,currentUser.getId());
|
||||
Integer lawsInventoryCountRZ = projectLawsInventoryEOMapper.selectCount(inventoryEOQueryWrapperRZ);
|
||||
Integer lawsInventoryCountRZ = projectLawsInventoryEOMapper.selectCount(inventoryEOQueryWrapperRZ);*/
|
||||
// 2023-03-24 修改,由于将认证工程师 挪到了 项目库详情信息中,法规清单中没有认证工程师信息了。
|
||||
ProjectLibraryBase projectLibraryBase = this.projectLibraryBaseMapper.selectById(projectLibraryId);
|
||||
Integer lawsInventoryCountRZ = 0;
|
||||
if(StringUtils.isNotEmpty(projectLibraryBase.getCertificationEngineer())){
|
||||
if(StringUtils.contains(projectLibraryBase.getCertificationEngineer(),currentUser.getId())){
|
||||
lawsInventoryCountRZ = 1;
|
||||
}
|
||||
}
|
||||
if(lawsInventoryCountRZ > 0){
|
||||
result = Integer.parseInt(ProjectRoleEnum.HOMOLOGATION_ENGINEER.getValue());
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user