From 01ce506361a12e557fbec3038674abb2176108f7 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期一, 11 九月 2023 15:03:45 +0800
Subject: [PATCH] 下一步核查
---
src/main/java/com/ruoyi/project/system/user/controller/IndexController.java | 40 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/ruoyi/project/system/user/controller/IndexController.java b/src/main/java/com/ruoyi/project/system/user/controller/IndexController.java
index d3670b9..dea9ce7 100644
--- a/src/main/java/com/ruoyi/project/system/user/controller/IndexController.java
+++ b/src/main/java/com/ruoyi/project/system/user/controller/IndexController.java
@@ -8,6 +8,11 @@
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.security.ShiroUtils;
+import com.ruoyi.doublePrevention.controller.RiskAndPeopleInfoController;
+import com.ruoyi.doublePrevention.entity.dto.req.RiskAndPeopleInfoReqBO;
+import com.ruoyi.doublePrevention.entity.dto.resp.RiskAndPeopleInfoRespDTO;
+import com.ruoyi.doublePrevention.service.baseService.RiskAndPeopleInfoService;
+import com.ruoyi.doublePrevention.vo.ResultVO;
import com.ruoyi.project.system.company.domain.Company;
import com.ruoyi.project.system.company.service.ICompanyService;
import com.ruoyi.project.system.role.domain.Role;
@@ -50,6 +55,9 @@
private IRoleService roleService;
@Autowired
private ReportMapper reportMapper;
+
+ @Autowired
+ private RiskAndPeopleInfoService riskAndPeopleInfoService;
// 系统首页
@GetMapping("/index")
public String index(ModelMap mmap)
@@ -285,6 +293,38 @@
mmap.put("version", ruoYiConfig.getVersion());
return "main_two";
}
+
+ @GetMapping("/system/riskAndPeopleInfo")
+ public String riskAndPeopleInfo(ModelMap mmap){
+ RiskAndPeopleInfoReqBO reqBO = new RiskAndPeopleInfoReqBO();
+ reqBO.setPageSize(10);
+ reqBO.setPageNum(1);
+ ResultVO<RiskAndPeopleInfoRespDTO> result = riskAndPeopleInfoService.listRiskAndPeoplePage(reqBO);
+// RiskAndPeopleInfoRespDTO data = (RiskAndPeopleInfoRespDTO) result.getData();
+// resultVO.setPageSize(result.getPageSize());
+// resultVO.setPageNum(result.getPageNum());
+// resultVO.setCount(result.getCount());
+// resultVO.setData(result.getData());
+
+// TableDataInfo dataTable = getDataTable(data.getRiskAndPeopleInfoDTO());
+// dataTable.setTotal(result.getCount());
+
+// mmap.put("riskAndPeopleInfo", ((RiskAndPeopleInfoRespDTO) result.getData()).getRiskAndPeopleInfoDTO());
+ mmap.put("count", ((RiskAndPeopleInfoRespDTO) result.getData()).getCount());
+ mmap.put("complete", ((RiskAndPeopleInfoRespDTO) result.getData()).getComplete());
+ mmap.put("completeRatio", ((RiskAndPeopleInfoRespDTO) result.getData()).getCompleteRatio());
+ mmap.put("countOfHandle", ((RiskAndPeopleInfoRespDTO) result.getData()).getCountOfHandle());
+ mmap.put("completeOfHandle", ((RiskAndPeopleInfoRespDTO) result.getData()).getCompleteOfHandle());
+ mmap.put("completeRatioOfHandle", ((RiskAndPeopleInfoRespDTO) result.getData()).getCompleteRatioOfHandle());
+ mmap.put("countOfTechnology", ((RiskAndPeopleInfoRespDTO) result.getData()).getCountOfTechnology());
+ mmap.put("completeOfTechnology", ((RiskAndPeopleInfoRespDTO) result.getData()).getCompleteOfTechnology());
+ mmap.put("completeRatioOfTechnology", ((RiskAndPeopleInfoRespDTO) result.getData()).getCompleteRatioOfTechnology());
+ mmap.put("countOfMain", ((RiskAndPeopleInfoRespDTO) result.getData()).getCountOfMain());
+ mmap.put("completeOfMain", ((RiskAndPeopleInfoRespDTO) result.getData()).getCompleteOfMain());
+ mmap.put("completeRatioOfMain", ((RiskAndPeopleInfoRespDTO) result.getData()).getCompleteRatioOfMain());
+// mmap.put("version", ruoYiConfig.getVersion());
+ return "tr/riskAndPeopleInfo/riskAndPeopleInfo";
+ }
}
--
Gitblit v1.9.2