influxdb数据查询调整
This commit is contained in:
@@ -29,4 +29,7 @@ public interface CsLineFeignClient {
|
||||
|
||||
@PostMapping("/findByNdid")
|
||||
HttpResult<List<CsLinePO>> findByNdid(@RequestParam("id") String id);
|
||||
|
||||
@PostMapping("/getPositionById")
|
||||
HttpResult<String> getPositionById(@RequestParam("id") String id);
|
||||
}
|
||||
|
||||
@@ -50,6 +50,12 @@ public class CsLineClientFallbackFactory implements FallbackFactory<CsLineFeignC
|
||||
log.error("{}异常,降级处理,异常为:{}","根据ndid查询监测点",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<String> getPositionById(String id) {
|
||||
log.error("{}异常,降级处理,异常为:{}","通过id查询监测点位置",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ public enum AlgorithmResponseEnum {
|
||||
NDID_ERROR("A00502","存在相同的ndid"),
|
||||
DATA_ERROR("A00503","存在相同的数据"),
|
||||
LINE_DATA_ERROR ("A00504","设备下监测点数据缺失"),
|
||||
POSITION_ERROR ("A00504","监测点位置数据缺失"),
|
||||
ENGINEERING_DATA_ERROR ("A00505","工程数据数据缺失"),
|
||||
ELEEPDPQD_DATA_ERROR ("A00506","统计指标据数据缺失"),
|
||||
FILE_SIZE_ERROR ("A00507","文件不能超过10M"),
|
||||
|
||||
Reference in New Issue
Block a user