From 9a5daeab88958be8f46881e5a20d404855294f0a Mon Sep 17 00:00:00 2001 From: wangliwen Date: Mon, 19 Dec 2022 10:08:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E8=B5=84=E6=BA=90=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E8=A1=A5=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/controller/CensusController.java | 1 - .../service/impl/ResourceServiceImpl.java | 61 +++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) 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); }