Merge branch 'dev'
This commit is contained in:
commit
f9cce65adc
|
@ -2081,10 +2081,8 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
|||
if (user.getDeptId() != null) {
|
||||
SysDeptDTO sysDeptDTO = deptService.get(user.getDeptId());
|
||||
params.put("region", sysDeptDTO.getDistrict()); // 管理员只出本部门区域
|
||||
logger.error("区域管理员只出本部门区域:{}", sysDeptDTO.getDistrict());
|
||||
}
|
||||
// else if (user.getSuperAdmin() == SuperAdminEnum.YES.value()) { // 超级管理员
|
||||
//
|
||||
// }
|
||||
if (params.containsKey("deptId") && org.apache.commons.lang3.StringUtils.isNotEmpty(params.get("deptId").toString())) { // 部门精准查
|
||||
List<Map<String, Object>> typeCountListByApplyDept = resourceDao.selectApplyDeptDetailTypeCountList(params);
|
||||
Map<String, List<Map<String, Object>>> typeCountListMap = typeCountListByApplyDept.stream().collect(Collectors.groupingBy(m -> m.get("deptName").toString()));
|
||||
|
@ -2264,11 +2262,9 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
|||
UserDetail user = SecurityUser.getUser();
|
||||
if (user.getDeptId() != null) {
|
||||
SysDeptDTO sysDeptDTO = deptService.get(user.getDeptId());
|
||||
params.put("region", sysDeptDTO.getDistrict()); // 管理员只出本部门区域
|
||||
params.put("region", sysDeptDTO.getDistrict()); // 区域管理员只出本部门区域
|
||||
logger.error("区域管理员只出本部门区域:{}", sysDeptDTO.getDistrict());
|
||||
}
|
||||
// else if (user.getSuperAdmin() == SuperAdminEnum.YES.value()) { // 超级管理员
|
||||
//
|
||||
// }
|
||||
if (params.containsKey("deptId") && org.apache.commons.lang3.StringUtils.isNotEmpty(params.get("deptId").toString())) {
|
||||
List<Map<String, Object>> typeCountListByDept = resourceDao.selectDeptDetailTypeCountList(params);
|
||||
Map<String, List<Map<String, Object>>> typeCountListMap = typeCountListByDept.stream().collect(Collectors.groupingBy(m -> m.get("deptName").toString()));
|
||||
|
|
|
@ -82,6 +82,10 @@ public class ShiroConfig {
|
|||
filterMap.put("/upload", "anon");
|
||||
filterMap.put("/upload/**", "anon");
|
||||
filterMap.put("/census/center/v3/**", "oauth2");
|
||||
filterMap.put("/census/center/selectDeptDetailTypeCountList", "oauth2");
|
||||
filterMap.put("/census/center/selectCensusResourceTable", "oauth2");
|
||||
filterMap.put("/census/center/exportSelectDeptDetailTypeCountList", "oauth2");
|
||||
filterMap.put("/census/center/exportSelectCensusResourceTable", "oauth2");
|
||||
filterMap.put("/census/center/**", "anon"); // 全局各类统计 包含 /census/center/v2
|
||||
filterMap.put("/metrics/**", "anon");
|
||||
filterMap.put("/gateway-monitor/**", "anon");
|
||||
|
|
Loading…
Reference in New Issue