| | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.security.ShiroUtils; |
| | | import com.ruoyi.doublePrevention.repository.param.PreventPointAndMeasureParams; |
| | | import com.ruoyi.doublePrevention.service.RiskService; |
| | | import com.ruoyi.project.enumerate.TrEvaluationMethodDetailsEnum; |
| | | import com.ruoyi.project.enumerate.TrEvaluationMethodTypeEnum; |
| | | import com.ruoyi.project.system.dept.domain.Dept; |
| | |
| | | |
| | | @Autowired |
| | | private IUserService userService; |
| | | |
| | | @Autowired |
| | | private RiskService riskService; |
| | | |
| | | @GetMapping("{riskId}") |
| | | public String baseCheckPoint(@PathVariable("riskId")Long riskId,ModelMap modelMap) |
| | |
| | | @ResponseBody |
| | | public AjaxResult addSave(BaseCheckPoint baseCheckPoint) |
| | | { |
| | | return toAjax(baseCheckPointService.insertBaseCheckPoint(baseCheckPoint)); |
| | | //老代码改造 |
| | | int result = baseCheckPointService.insertBaseCheckPoint(baseCheckPoint); |
| | | |
| | | //todo ,此处改造,嵌入管控措施 |
| | | baseCheckPoint.getCheckPointId(); |
| | | PreventPointAndMeasureParams pointAndMeasureParams = new PreventPointAndMeasureParams(); |
| | | //封装参数 |
| | | pointAndMeasureParams.setBaseCheckPointId(baseCheckPoint.getCheckPointId()); |
| | | pointAndMeasureParams.setControlMeasureId(baseCheckPoint.getControlMeasureId());//todo,该参数页面尚未封装进去 |
| | | pointAndMeasureParams.setRiskId(baseCheckPoint.getRiskId()); |
| | | riskService.insertPointAndMeasure(pointAndMeasureParams); |
| | | |
| | | return toAjax(result); |
| | | } |
| | | |
| | | /** |