diff --git a/renren-admin/src/main/java/io/renren/common/controller/CensusController.java b/renren-admin/src/main/java/io/renren/common/controller/CensusController.java index bc599e7a..2f6a5072 100644 --- a/renren-admin/src/main/java/io/renren/common/controller/CensusController.java +++ b/renren-admin/src/main/java/io/renren/common/controller/CensusController.java @@ -570,7 +570,6 @@ public class CensusController { SysDeptDTO sysDeptDTO = sysDeptService.get(user.getDeptId()); //2022-11-21 修改为只有大数据局部门和admin账号能查看所有 if (SuperAdminEnum.YES.value() != user.getSuperAdmin() && !bigDataDeptName.equals(sysDeptDTO.getName())) { - params.put("region", sysDeptDTO.getDistrict()); // 管理员只出本部门区域 } return new Result().ok(resourceService.selectCensusApplyTable(params)); diff --git a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java index 308ca600..a8cce03a 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java @@ -2983,6 +2983,67 @@ public class ResourceServiceImpl extends CrudServiceImpl> list = new ArrayList<>(); try { list = lcJdbcTemplate.queryForList(sb.toString()); + list = list.stream().map(index -> { + switch (index.get("type").toString()) { // 根据类型填充其审核状态 + case "云主机": + case "云数据库": + case "对象存储": + case "托管服务": { + switch (index.get("approveStatus").toString()) { + case "01": + index.put("approveStatus", "提交"); + break; + case "03": + index.put("approveStatus", "一级部门提交"); + break; + case "04": + index.put("approveStatus", "驳回"); + break; + case "05": + index.put("approveStatus", "审核通过"); + break; + case "06": + index.put("approveStatus", "交付"); + break; + default: + index.put("approveStatus", "未知状态"); + } + } + break; + case "云视频": { + switch (index.get("approveStatus").toString()) { + case "00": + index.put("approveStatus", "草稿"); + break; + case "01": + index.put("approveStatus", "提交"); + break; + case "02": + index.put("approveStatus", "大数据局审核通过"); + break; + case "03": + index.put("approveStatus", "提交给视频所属部门"); + break; + case "04": + index.put("approveStatus", "大数据局驳回"); + break; + case "05": + index.put("approveStatus", "视频所属部门已审核"); + break; + case "06": + index.put("approveStatus", "交付"); + break; + case "08": + index.put("approveStatus", "视频所属部门审核中"); + break; + default: + index.put("approveStatus", "未知状态"); + } + } + break; + } + return index; + }).collect(Collectors.toList()); } catch (DataAccessException e) { logger.error("查询浪潮数据库--按资源查询申请记录SQL:{}", sb); }