From 977a98876643947aca10fc5c0aa30f723ba6e48e Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期五, 28 四月 2023 13:36:37 +0800
Subject: [PATCH] 添加包保责任制页面

---
 src/main/java/com/ruoyi/project/system/user/controller/IndexController.java |   38 ++++++++++++++++++++++++++++++++++++--
 1 files changed, 36 insertions(+), 2 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 95342ec..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)
@@ -288,8 +296,34 @@
 
     @GetMapping("/system/riskAndPeopleInfo")
     public String riskAndPeopleInfo(ModelMap mmap){
-        mmap.put("version", ruoYiConfig.getVersion());
-        return "riskAndPeopleInfo";
+        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