| | |
| | | import com.ruoyi.doublePrevention.vo.ResultVO; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.page.TableDataInfo; |
| | | import com.ruoyi.project.system.dept.domain.Dept; |
| | | import com.ruoyi.project.tr.hiddenDangerCheckPoint.service.IHiddenDangerCheckPointService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.ModelMap; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @PostMapping("/list") |
| | | @ResponseBody |
| | | public TableDataInfo list(RiskAndPeopleInfoReqBO reqBO) |
| | | public String list(RiskAndPeopleInfoReqBO reqBO, ModelMap mmap) |
| | | { |
| | | // ResultVO resultVO = new ResultVO<>(); |
| | | // resultVO.setCode("200"); |
| | | // resultVO.setMsg("查询成功"); |
| | | |
| | | ResultVO<RiskAndPeopleInfoRespDTO> result = riskAndPeopleInfoService.listRiskAndPeoplePage(reqBO); |
| | | RiskAndPeopleInfoRespDTO data = (RiskAndPeopleInfoRespDTO) result.getData(); |
| | | // 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()); |
| | | return dataTable; |
| | | // 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()); |
| | | |
| | | return prefix + "/listRiskAndPeopleInfo"; |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |