治理设备管理功能

This commit is contained in:
2023-06-15 20:46:43 +08:00
parent 9c1a82a231
commit 4e28bb7401
6 changed files with 35 additions and 5 deletions

View File

@@ -34,4 +34,7 @@ public interface EpdFeignClient {
@PostMapping("/selectById")
HttpResult<EleEpdPqd> selectById(@RequestParam("id") String id);
@PostMapping("/selectByIds")
HttpResult<List<EleEpdPqd>> selectByIds(@RequestBody List<String> ids);
}

View File

@@ -57,6 +57,12 @@ public class EpdFeignClientFallbackFactory implements FallbackFactory<EpdFeignCl
log.error("{}异常,降级处理,异常为:{}","根据id查询字典数据",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<List<EleEpdPqd>> selectByIds(List<String> ids) {
log.error("{}异常,降级处理,异常为:{}","根据ids查询字典数据",cause.toString());
throw new BusinessException(finalExceptionEnum);
}
};
}
}