| | |
| | | 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.project.enumerate.TrEvaluationMethodDetailsEnum; |
| | |
| | | public String edit(@PathVariable("checkPointId") Long checkPointId, ModelMap mmap) |
| | | { |
| | | BaseCheckPoint baseCheckPoint = baseCheckPointService.selectBaseCheckPointById(checkPointId); |
| | | //todo-2022 返回参数加入措施id |
| | | PreventRiskCheckUnit riskCheckUnit = riskService.getRiskUnitByBaseCheckPointId(checkPointId); |
| | | |
| | | if (riskCheckUnit != null){ |
| | | baseCheckPoint.setControlMeasureId(riskCheckUnit.getControlMeasureId()); |
| | | } |
| | | mmap.put("baseCheckPoint", baseCheckPoint); |
| | | return prefix + "/edit"; |
| | | } |