From a6874344d96b58312337225cb62b2927162bb626 Mon Sep 17 00:00:00 2001 From: zhubaomin <zhubaomin> Date: 星期一, 02 十二月 2024 16:41:05 +0800 Subject: [PATCH] 重构添加巡检轨迹接口,如果巡检已存在,返回巡检员ID对应的巡检ID --- pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/web/com/CommandCtrl.java | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/web/com/CommandCtrl.java b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/web/com/CommandCtrl.java index 142a879..2a4f64c 100644 --- a/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/web/com/CommandCtrl.java +++ b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/web/com/CommandCtrl.java @@ -162,14 +162,14 @@ } /** - * 鎺ユ敹web绯荤粺鍙戞潵鍋滄鍗囩骇浠诲姟 + * 鎺ユ敹web绯荤粺鍙戞潵寮哄埗缁撴潫鍗囩骇浠诲姟 * @return */ - @PostMapping(path = "ugForceStop", consumes = MediaType.APPLICATION_JSON_VALUE) - public BaseResponse<String> ugForceStop() { + @GetMapping(path = "ugForceOver", consumes = MediaType.APPLICATION_JSON_VALUE) + public BaseResponse<String> ugForceOver() { log.info("鏀跺埌鍋滄RTU鍗囩骇浠诲姟鍛戒护") ; try{ - String mes = UpgradeUnit.getInstance().overUpgradeTask(); + String mes = UpgradeUnit.getInstance().forceOverUpgradeTask(); if(mes == null){ mes = "鍋滄鍗囩骇浠诲姟鎴愬姛" ; } @@ -179,7 +179,6 @@ return BaseResponseUtils.buildError("鍋滄RTU鍗囩骇浠诲姟鏃跺彂鐢熷紓甯�" + (e.getMessage() == null?"":("锛�" + e.getMessage()))); } } - /** * 鎺ユ敹web绯荤粺鍙戞潵鐨勫懡浠� -- Gitblit v1.8.0