双重预防项目-国泰新华二开定制版
huangzhen
2022-09-16 1bdce029a16f396a933848b368040e78740728fa
src/main/java/com/ruoyi/project/tr/baseCheckPoint/controller/BaseCheckPointController.java
@@ -8,6 +8,7 @@
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;
@@ -180,6 +181,12 @@
    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";
    }