| | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.security.ShiroUtils; |
| | | import com.ruoyi.doublePrevention.entity.PreventRiskCheckUnit; |
| | | import com.ruoyi.doublePrevention.repository.param.PreventPointAndMeasureParams; |
| | | import com.ruoyi.doublePrevention.service.RiskService; |
| | | import com.ruoyi.doublePrevention.service.baseService.PreventRiskDangerInfoService; |
| | |
| | | { |
| | | startPage(); |
| | | List<BaseCheckPoint> list = baseCheckPointService.selectBaseCheckPointList(baseCheckPoint); |
| | | return getDataTable(list); |
| | | List<BaseCheckPoint> resultList = new ArrayList<>(); |
| | | |
| | | //todo-2022 ,此处改造,查询措施相关信息 |
| | | for (BaseCheckPoint checkPoint : list) { |
| | | PreventRiskCheckUnit measureByCheckPointId = riskService.getRiskControlMeasureByCheckPointId(checkPoint.getCheckPointId()); |
| | | checkPoint.setControlMeasureId(measureByCheckPointId.getControlMeasureId()); |
| | | resultList.add(checkPoint); |
| | | } |
| | | |
| | | return getDataTable(resultList); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | //todo-2022 ,此处改造,嵌入管控措施 |
| | | baseCheckPoint.getCheckPointId(); |
| | | |
| | | //使用baseCheckPointId进行查询 |
| | | // BaseCheckPoint baseCheckPointById = baseCheckPointService.getBaseCheckPointById(baseCheckPoint.getCheckPointId()); |
| | | |
| | | PreventPointAndMeasureParams pointAndMeasureParams = new PreventPointAndMeasureParams(); |
| | | //封装参数 |
| | | pointAndMeasureParams.setBaseCheckPointId(baseCheckPoint.getCheckPointId()); |
| | | pointAndMeasureParams.setControlMeasureId(baseCheckPoint.getControlMeasureId());// todo,该参数页面尚未封装进去 |
| | | pointAndMeasureParams.setRiskId(baseCheckPoint.getRiskId()); |
| | | |
| | | int result1 = riskService.insertPointAndMeasure(pointAndMeasureParams); |
| | | |
| | | if (result1 < 1){ |
| | | throw new RuntimeException("新增异常,保存管控措施关系失败"); |
| | | } |