| | |
| | | import com.ruoyi.project.tr.region.domain.Region; |
| | | import com.ruoyi.project.tr.region.service.IRegionService; |
| | | import com.ruoyi.project.tr.riskCheckPoint.domain.RiskCheckPoint; |
| | | import com.ruoyi.project.tr.riskCheckPoint.domain.RiskCheckPointBak; |
| | | import com.ruoyi.project.tr.riskCheckPoint.service.IRiskCheckPointService; |
| | | import com.ruoyi.project.tr.riskEvaluationPlan.domain.RiskEvaluationPlan; |
| | | import com.ruoyi.project.tr.riskEvaluationPlan.service.IRiskEvaluationPlanService; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 跳转查询检查点及评价列表-旧页面 |
| | | * @return |
| | | */ |
| | | @GetMapping("/ledgerBak") |
| | | public String ledgerBak(){ |
| | | return prefix + "/ledgerBak"; |
| | | } |
| | | |
| | | /** |
| | | * 查询检查点及评价列表-旧 |
| | | * @param riskCheckPointBak |
| | | * @return |
| | | */ |
| | | @PostMapping("/listBak") |
| | | @ResponseBody |
| | | public TableDataInfo listBak(RiskCheckPointBak riskCheckPointBak) |
| | | { |
| | | startPage(); |
| | | List<RiskCheckPointBak> list = riskCheckPointService.selectRiskCheckPointBakList(riskCheckPointBak); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 查询检查点及评价详情 |
| | | * @param checkPointId |
| | | * @param mmap |
| | | * @return |
| | | */ |
| | | @GetMapping("/bakDetail/{checkPointId}") |
| | | public String bakDetail(@PathVariable("checkPointId") Long checkPointId, ModelMap mmap) |
| | | { |
| | | RiskCheckPointBak riskCheckPointBak = new RiskCheckPointBak(); |
| | | riskCheckPointBak.setCheckPointId(checkPointId); |
| | | List<RiskCheckPointBak> list = riskCheckPointService.selectRiskCheckPointBakList(riskCheckPointBak); |
| | | mmap.put("riskCheckPoint", list.get(0)); |
| | | return prefix + "/detailByLSBak"; |
| | | //查出该检查点,选用的评价方法 |
| | | // Integer evaluationMethodType = riskCheckPoint.getEvaluationMethodType(); |
| | | // if(TrEvaluationMethodTypeEnum.LS.getMethodId().equals(evaluationMethodType)){ |
| | | // return prefix + "/detail" +TrEvaluationMethodTypeEnum.LS.getUrl(); |
| | | // } |
| | | // else if(TrEvaluationMethodTypeEnum.LEC.getMethodId().equals(evaluationMethodType)){ |
| | | // return prefix + "/detail" +TrEvaluationMethodTypeEnum.LEC.getUrl(); |
| | | // }else if(TrEvaluationMethodTypeEnum.MES.getMethodId().equals(evaluationMethodType)){ |
| | | // return prefix + "/detail" +TrEvaluationMethodTypeEnum.MES.getUrl(); |
| | | // }else if(TrEvaluationMethodTypeEnum.RS.getMethodId().equals(evaluationMethodType)){ |
| | | // return prefix + "/detail" +TrEvaluationMethodTypeEnum.RS.getUrl(); |
| | | // } |
| | | // else{ |
| | | // return "/error/404"; |
| | | // } |
| | | } |
| | | @Log(title = "检查点及评价Bak", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/exportBak") |
| | | @ResponseBody |
| | | public AjaxResult exportBak(RiskCheckPointBak riskCheckPoint) |
| | | { |
| | | List<RiskCheckPointBak> list = riskCheckPointService.selectRiskCheckPointBakList(riskCheckPoint); |
| | | ExcelUtil<RiskCheckPointBak> util = new ExcelUtil<RiskCheckPointBak>(RiskCheckPointBak.class); |
| | | return util.exportExcel(list, "风险评价台账"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出检查点及评价列表 |
| | | */ |
| | | @Log(title = "检查点及评价", businessType = BusinessType.EXPORT) |