1.终端周期检测定时任务
2.监测点超标统计定时任务
This commit is contained in:
@@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.PostMapping;
|
||||
@FeignClient(value = ServerInfo.SUPERVISION, path = "/onlineMonitor", fallbackFactory = LineWarningFeignClientFallbackFactory.class)
|
||||
public interface LineWarningFeignClient {
|
||||
|
||||
@PostMapping("/add")
|
||||
HttpResult<String> add();
|
||||
@PostMapping("/heBeiNorthAdd")
|
||||
HttpResult<String> heBeiNorthAdd();
|
||||
|
||||
}
|
||||
|
||||
@@ -10,9 +10,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @author denghuajun
|
||||
* @version 1.0.0
|
||||
* @date 2022/3/16
|
||||
* @author xy
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
@@ -28,8 +26,8 @@ public class LineWarningFeignClientFallbackFactory implements FallbackFactory<Li
|
||||
Enum<?> finalExceptionEnum = exceptionEnum;
|
||||
return new LineWarningFeignClient() {
|
||||
@Override
|
||||
public HttpResult<String> add() {
|
||||
log.error("{}异常,降级处理,异常为:{}", "新增终端检测数据", throwable.toString());
|
||||
public HttpResult<String> heBeiNorthAdd() {
|
||||
log.error("{}异常,降级处理,异常为:{}", "新增在线监测数据(冀北-按月统计累计超标天数)", throwable.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user