feat(cs-device): 增加监测点列表查询接口及参数过滤功能
This commit is contained in:
@@ -53,10 +53,13 @@ public interface CsLineFeignClient {
|
||||
@PostMapping("/getLineByName")
|
||||
HttpResult<List<CsLinePO>> getLineByName(@RequestParam("lineName") String lineName);
|
||||
|
||||
|
||||
@PostMapping("/getAllLine")
|
||||
HttpResult<List<String>> getAllLine();
|
||||
|
||||
@PostMapping("/getOverLimitDataByIds")
|
||||
HttpResult<List<Overlimit>> getOverLimitData(@RequestBody List<String> ids);
|
||||
|
||||
@PostMapping("/list")
|
||||
HttpResult<List<CsLinePO>> list(@RequestBody CsLinePO param);
|
||||
|
||||
}
|
||||
|
||||
@@ -104,6 +104,11 @@ public class CsLineClientFallbackFactory implements FallbackFactory<CsLineFeignC
|
||||
log.error("{}异常,降级处理,异常为:{}","根据名称查询监测点异常",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
@Override
|
||||
public HttpResult<List<CsLinePO>> list(CsLinePO param) {
|
||||
log.error("{}异常,降级处理,异常为:{}","查询监测点列表异常",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user