From 31e38b644b64963ffbe2669cf61d471ef73b1dca Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Fri, 28 Jul 2023 14:44:51 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E6=8E=A5=E7=AB=99FDP=E7=AB=99=E7=82=B9?= =?UTF-8?q?=E6=8E=A8=E9=80=81bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/hnac/hzims/fdp/feign/IQuestionClient.java | 6 +++--- .../src/main/java/com/hnac/hzims/fdp/feign/QuestionClient.java | 6 +++--- .../hzims/operational/station/service/impl/StationServiceImpl.java | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/fdp/feign/IQuestionClient.java b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/fdp/feign/IQuestionClient.java index 42292c1..350ee77 100644 --- a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/fdp/feign/IQuestionClient.java +++ b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/fdp/feign/IQuestionClient.java @@ -28,9 +28,9 @@ public interface IQuestionClient { * @return */ @GetMapping(SUBMIT_STATION_INFO) - R submitStationInfo(@RequestParam("fdp站点类型") Integer fdpStationType, - @RequestParam("站点编码") String stationCode, - @RequestParam(value = "站点描述",required = false) String stationDesc); + R submitStationInfo(@RequestParam Integer fdpStationType, + @RequestParam String stationCode, + @RequestParam(required = false) String stationDesc); @DeleteMapping(DELETE_STATION_INFO) R deleteStationInfo(@RequestParam String stationId); diff --git a/hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/feign/QuestionClient.java b/hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/feign/QuestionClient.java index b6880f4..7432864 100644 --- a/hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/feign/QuestionClient.java +++ b/hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/feign/QuestionClient.java @@ -21,9 +21,9 @@ public class QuestionClient implements IQuestionClient { @GetMapping(SUBMIT_STATION_INFO) @Override - public R submitStationInfo(@RequestParam("fdp站点类型") Integer fdpStationType, - @RequestParam("站点编码") String stationCode, - @RequestParam(value = "站点描述",required = false) String stationDesc) { + public R submitStationInfo(@RequestParam Integer fdpStationType, + @RequestParam String stationCode, + @RequestParam(required = false) String stationDesc) { return R.status(fdpQuestionService.submitStationInfo(fdpStationType,stationCode,stationDesc)); } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java index ea3c4cf..e2b5123 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java @@ -114,7 +114,7 @@ public class StationServiceImpl extends BaseServiceImpl questionClient.submitStationInfo(configVO.getFdpStationType(), req.getCode(), ""), "智能诊断站点推送").start(); + new Thread(() -> questionClient.submitStationInfo(configVO.getFdpStationType(), req.getCode(), "运维平台推送"), "智能诊断站点推送").start(); } // 如果设备数据来源未选定其他 则进行站点初始化操作 if (StationConstants.GATHER.equals(req.getDataOrigin()) && !StationConstants.HZ3000_OTHER.equals(req.getDataSource())) {