渗透检测-委托用户角色校验,角色编号获取

This commit is contained in:
zhangqinbin
2023-03-29 10:00:55 +08:00
parent 35c6fdc282
commit f62e79d0dd

View File

@ -119,14 +119,12 @@ public class ProjectEntrustServiceImpl extends BaseServiceImpl<ProjectEntrustMap
//采购经理查 采购经理
if("ebtp-purchase".equals(currentRoleCode)){
query.eq("purchasing_manager", cacheUserService.getCacheUser().getUserId());
}
//代理管理员查 代理机构
if("ebtp-agency-admin".equals(currentRoleCode)){
}else if("ebtp-agency-admin".equals(currentRoleCode)){ //代理管理员查 代理机构
query.eq("agency_company", cacheUserService.getCacheUser().getOrganizationId());
}
//代理机构业务经理 查 项目经理
if("ebtp-agency-project-manager".equals(currentRoleCode)){
}else if("ebtp-agency-project-manager".equals(currentRoleCode)){//代理机构业务经理 查 项目经理
query.eq("project_manager", cacheUserService.getCacheUser().getUserId());
}else{
query.eq("1", "2");
}
//项目经理