update code
parent
334cfae105
commit
7abdf61454
|
@ -46,7 +46,7 @@ public class SecurityUtils
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new ServiceException("获取RoleID异常", HttpStatus.UNAUTHORIZED);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -60,12 +60,6 @@ public class ProjectQuarterlyAssessController extends BaseController {
|
|||
if(obj!=null){
|
||||
return AjaxResult.success(obj);
|
||||
}
|
||||
Long deptId= where.getDeptId();
|
||||
if(deptId==null || deptId<=0){
|
||||
if (SecurityUtils.isUserB()) {
|
||||
where.setPrjIds(getProjectIds());
|
||||
}
|
||||
}
|
||||
List list=smzProjectQuarterlyAssessService.queryByProjectType(where);
|
||||
redisCache.setCacheObject(key, list, Constants.BIGSCREEN_QUERY_CACHE, TimeUnit.MINUTES);
|
||||
return AjaxResult.success(list);
|
||||
|
|
|
@ -45,11 +45,6 @@ public class ProjectScheduleController extends BaseController {
|
|||
SurProjectScheduleWhere where =new SurProjectScheduleWhere();
|
||||
where.setPrjType(type);
|
||||
where.setDeptId(deptId);
|
||||
if(deptId==null || deptId<=0){
|
||||
if (SecurityUtils.isUserB()) {
|
||||
where.setPrjIds(getProjectIds());
|
||||
}
|
||||
}
|
||||
List<SurProjectSchedule> list=isurProjectScheduleService.selectByProjectType(where);
|
||||
redisCache.setCacheObject(key, list, Constants.BIGSCREEN_QUERY_CACHE, TimeUnit.MINUTES);
|
||||
return AjaxResult.success(list);
|
||||
|
|
Loading…
Reference in New Issue