update code

dev_xds
haha 2023-10-12 23:34:17 +08:00
parent 334cfae105
commit 7abdf61454
3 changed files with 1 additions and 12 deletions

View File

@ -46,7 +46,7 @@ public class SecurityUtils
}
catch (Exception e)
{
throw new ServiceException("获取RoleID异常", HttpStatus.UNAUTHORIZED);
return 0;
}
}

View File

@ -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);

View File

@ -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);