Browse Source

#智能预警bug修改

zhongwei
yang_shj 1 year ago
parent
commit
b6c0689c66
  1. 3
      hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/fdp/feign/IFdpMonitorClient.java
  2. 3
      hzims-service/equipment/src/main/java/com/hnac/hzims/fdp/feign/FdpMonitorClient.java

3
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.springblade.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List; import java.util.List;
@ -32,7 +33,7 @@ public interface IFdpMonitorClient {
R<List<String>> getRealIds(); R<List<String>> getRealIds();
@GetMapping(GET_FAULT_LIST) @GetMapping(GET_FAULT_LIST)
String getFaultList(List<String> stations); String getFaultList(@RequestParam(value = "stations",required = false) List<String> stations);
@GetMapping(UPDATE_FAULT_STATE) @GetMapping(UPDATE_FAULT_STATE)
String updateFaultState(UpdateFaultStateVo state); String updateFaultState(UpdateFaultStateVo state);

3
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.springblade.core.tool.api.R;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.List; import java.util.List;
@ -30,7 +31,7 @@ public class FdpMonitorClient implements IFdpMonitorClient{
@GetMapping(GET_FAULT_LIST) @GetMapping(GET_FAULT_LIST)
@Override @Override
public String getFaultList(List<String> stations) { public String getFaultList(@RequestParam(value = "stations",required = false) List<String> stations) {
return fdpMonitorService.getFaultList(stations); return fdpMonitorService.getFaultList(stations);
} }

Loading…
Cancel
Save