| | |
| | | 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; |
| | |
| | | private IRoleService roleService; |
| | | @Autowired |
| | | private ReportMapper reportMapper; |
| | | |
| | | @Autowired |
| | | private RiskAndPeopleInfoService riskAndPeopleInfoService; |
| | | // 系统首页 |
| | | @GetMapping("/index") |
| | | public String index(ModelMap mmap) |
| | |
| | | |
| | | @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"; |
| | | } |
| | | } |
| | | |