1.技术监督试运行,不通过整体预告警单流程
This commit is contained in:
@@ -7,8 +7,10 @@ import com.njcn.device.pq.pojo.param.SyncTerminalParam;
|
||||
import com.njcn.device.pq.pojo.po.Line;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -31,11 +33,17 @@ public interface TerminalBaseClient {
|
||||
*/
|
||||
@PostMapping("/getSubstationById")
|
||||
HttpResult<List<Line>> getSubstationById(@RequestBody List<String> list);
|
||||
/*
|
||||
冀北技术监督台账同步
|
||||
*/
|
||||
|
||||
/**
|
||||
* 冀北技术监督台账同步
|
||||
*/
|
||||
@ApiOperation("终端/母线/监测点同步操作")
|
||||
@PostMapping("terminalSync")
|
||||
HttpResult<String> terminalSync( @RequestBody SyncTerminalParam syncTerminalParam);
|
||||
|
||||
/**
|
||||
* 监测点和装置同步成运行状态
|
||||
*/
|
||||
@GetMapping("/terminalSyncRunFly")
|
||||
HttpResult<Boolean> terminalSyncRunFly(@RequestParam("lineId") String lineId);
|
||||
}
|
||||
|
||||
@@ -44,6 +44,12 @@ public class TerminalBaseClientFallbackFactory implements FallbackFactory<Termin
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<Boolean> terminalSyncRunFly(String lineId) {
|
||||
log.error("{}异常,降级处理,异常为:{}", "监测点和装置同步成运行状态", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user