法规清单--数据查询(角色)

This commit is contained in:
zhn
2022-06-14 18:48:55 +08:00
parent fb9a865f25
commit a2b6ab6c1d
2 changed files with 5 additions and 1 deletions
@@ -15,6 +15,8 @@ public enum ProjectRoleEnum {
PREHOMODUTY("prehomo确认-责任人","8"),
VERIFYINITIATOR("验证符合性确认-发起人","9"),
VERIFYDUTY("验证符合性确认-责任人","10"),
MANAGER("验证符合性确认-责任人","11"),
ADMIN("系统管理员","12"),
;
String name;
@@ -623,7 +623,9 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
//if(isProjectRole != Integer.parseInt(ProjectRoleEnum.STUDIO_ENGINEER.getValue())){
int isProjectRole = Integer.parseInt(projectLawsInventoryEO.getRoleCode());
if(isProjectRole != Integer.parseInt(ProjectRoleEnum.STUDIO_ENGINEER.getValue())){
if(isProjectRole != Integer.parseInt(ProjectRoleEnum.STUDIO_ENGINEER.getValue())
|| isProjectRole != Integer.parseInt(ProjectRoleEnum.MANAGER.getValue())
|| isProjectRole != Integer.parseInt(ProjectRoleEnum.ADMIN.getValue())){
projectLawsInventoryEOQueryWrapper.and(queryWrapper ->{
queryWrapper.eq("regulation_owner_id",currentUser.getId()).
or().eq("homologation_engineer_id",currentUser.getId());