| | |
| | | prController.setIntakeId(intakeId); |
| | | prController.setRtuAddr(prControllerTramp.getRtuAddr()); |
| | | prController.setProtocol(prControllerTramp.getProtocol()); |
| | | prController.setProtocolVersion(prControllerTramp.getProtocolVersion()); |
| | | prController.setFindDt(prControllerTramp.getFindDt()); |
| | | prController.setOrgTag(prControllerTramp.getOrgTag()); |
| | | prController.setAddWays((byte) 1); |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("deleteTrampController") |
| | | @GetMapping("deleteTrampController") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @SsoAop() |
| | | public BaseResponse<Boolean> deleteTrampController(Long id) { |
| | |
| | | } |
| | | |
| | | Integer rows = intakeControllerSv.deleteTrampController(id); |
| | | if (rows == 0) { |
| | | return BaseResponseUtils.buildErrorMsg(ProjectResultCode.DELETE_TRAMP_CONTROLLER_FAIL.getMessage()); |
| | | } |
| | | // if (rows == 0) { |
| | | // return BaseResponseUtils.buildErrorMsg(ProjectResultCode.DELETE_TRAMP_CONTROLLER_FAIL.getMessage()); |
| | | // } |
| | | return BaseResponseUtils.buildSuccess(true); |
| | | } |
| | | |