| | |
| | | throw new RuntimeException("添加隐患信息失败"); |
| | | } |
| | | |
| | | //获取Id返回值 |
| | | // hdcp.getId(); |
| | | // int result = riskService.insertDangerInfo(hdcp.getId(), hdcp); |
| | | // if (result< 1){ |
| | | // throw new RuntimeException("添加隐患附属信息失败"); |
| | | // } |
| | | //获取Id返回值 20250623 放开 |
| | | hdcp.getId(); |
| | | int result = riskService.insertDangerInfo(hdcp.getId(), hdcp); |
| | | if (result< 1){ |
| | | throw new RuntimeException("添加隐患附属信息失败"); |
| | | } |
| | | |
| | | // PreventRiskDangerCheckAndMeasure dangerCheckPointInfo = preventRiskDangerCheckAndMeasureService.getByDangerCheckPointId(hdcp.getId()); |
| | | // riskService.updateCheckLog(dangerCheckPointInfo.getCheckId(), hdcp); |
| | |
| | | hdcp.setUpdateTime(DateUtils.getNowDate()); |
| | | i = hdcpService.updateHiddenDangerCheckPoint(hdcp); |
| | | |
| | | // todo-2022 此处修改附属表 |
| | | // int result = riskService.updateDangerInfo(hdcp); |
| | | // if (result < 1){ |
| | | // throw new RuntimeException("修改失败"); |
| | | // } |
| | | // todo-2022 此处修改附属表 20250623 放开 |
| | | int result = riskService.updateDangerInfo(hdcp); |
| | | if (result < 1){ |
| | | throw new RuntimeException("修改失败"); |
| | | } |
| | | // int result = riskService.insertDangerInfo(hdcp.getId(), hdcp); |
| | | // if (result< 1){ |
| | | // throw new RuntimeException("添加隐患附属信息失败"); |