From b6c0689c6664dd7762bded7896f6504742d94921 Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Tue, 5 Sep 2023 17:29:38 +0800 Subject: [PATCH] =?UTF-8?q?#=E6=99=BA=E8=83=BD=E9=A2=84=E8=AD=A6bug?= =?UTF-8?q?=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/IFdpMonitorClient.java | 3 ++- .../src/main/java/com/hnac/hzims/fdp/feign/FdpMonitorClient.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/fdp/feign/IFdpMonitorClient.java b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/fdp/feign/IFdpMonitorClient.java index 7c8ffa3..b3dd856 100644 --- a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/fdp/feign/IFdpMonitorClient.java +++ b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/fdp/feign/IFdpMonitorClient.java @@ -7,6 +7,7 @@ import com.hnac.hzims.fdp.vo.UpdateFaultStateVo; import org.springblade.core.tool.api.R; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestParam; import java.util.List; @@ -32,7 +33,7 @@ public interface IFdpMonitorClient { R> getRealIds(); @GetMapping(GET_FAULT_LIST) - String getFaultList(List stations); + String getFaultList(@RequestParam(value = "stations",required = false) List stations); @GetMapping(UPDATE_FAULT_STATE) String updateFaultState(UpdateFaultStateVo state); diff --git a/hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/feign/FdpMonitorClient.java b/hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/feign/FdpMonitorClient.java index e8d2f6a..27722b2 100644 --- a/hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/feign/FdpMonitorClient.java +++ b/hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/feign/FdpMonitorClient.java @@ -6,6 +6,7 @@ import com.hnac.hzims.fdp.vo.UpdateFaultStateVo; import org.springblade.core.tool.api.R; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.List; @@ -30,7 +31,7 @@ public class FdpMonitorClient implements IFdpMonitorClient{ @GetMapping(GET_FAULT_LIST) @Override - public String getFaultList(List stations) { + public String getFaultList(@RequestParam(value = "stations",required = false) List stations) { return fdpMonitorService.getFaultList(stations); }