From 002ae88eec6f311898c01085a1bf402d50dc812b Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期五, 08 十一月 2024 09:05:02 +0800
Subject: [PATCH] 修改通信中间件配置项,下发命令最大次数和时间间隔

---
 pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/intakeController/IntakeControllerCtrl.java |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/intakeController/IntakeControllerCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/intakeController/IntakeControllerCtrl.java
index 5c481f2..32201f0 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/intakeController/IntakeControllerCtrl.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/intakeController/IntakeControllerCtrl.java
@@ -102,6 +102,7 @@
         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);
@@ -311,7 +312,7 @@
         pct.setFindDt(new Date());
         Integer rows = intakeControllerSv.addTrampController(pct);
         if (rows == 0) {
-            return BaseResponseUtils.buildFail(ProjectResultCode.ADD_TRAMP_CONTROLLER_FAIL.getMessage());
+            return BaseResponseUtils.buildErrorMsg(ProjectResultCode.ADD_TRAMP_CONTROLLER_FAIL.getMessage());
         }
         return BaseResponseUtils.buildSuccess(true);
     }
@@ -328,12 +329,12 @@
     public BaseResponse<Boolean> deleteTrampController(Long id) {
         PrControllerTramp controllerInfo = intakeControllerSv.getTrampControllerInfo(id);
         if (controllerInfo == null) {
-            return BaseResponseUtils.buildFail(ProjectResultCode.NO_EXIST_TRAMP_CONTROLLER.getMessage());
+            return BaseResponseUtils.buildErrorMsg(ProjectResultCode.NO_EXIST_TRAMP_CONTROLLER.getMessage());
         }
 
         Integer rows = intakeControllerSv.deleteTrampController(id);
         if (rows == 0) {
-            return BaseResponseUtils.buildFail(ProjectResultCode.DELETE_TRAMP_CONTROLLER_FAIL.getMessage());
+            return BaseResponseUtils.buildErrorMsg(ProjectResultCode.DELETE_TRAMP_CONTROLLER_FAIL.getMessage());
         }
         return BaseResponseUtils.buildSuccess(true);
     }
@@ -351,7 +352,7 @@
 
         Integer rows = intakeControllerSv.emptyTrampController();
         if (rows == 0) {
-            return BaseResponseUtils.buildFail(ProjectResultCode.DELETE_TRAMP_CONTROLLER_FAIL.getMessage());
+            return BaseResponseUtils.buildErrorMsg(ProjectResultCode.DELETE_TRAMP_CONTROLLER_FAIL.getMessage());
         }
         return BaseResponseUtils.buildSuccess(true);
     }

--
Gitblit v1.8.0