Commit 5337476c by zhouhaibao

[+]组织查询

1 parent 2a404118
...@@ -28,6 +28,18 @@ public interface OrganizationService { ...@@ -28,6 +28,18 @@ public interface OrganizationService {
@GetMapping(value = "/getTenantPathsByUserId") @GetMapping(value = "/getTenantPathsByUserId")
R<List<Organization>> getTenantPathsByUserId(@RequestParam("userId") Long userId); R<List<Organization>> getTenantPathsByUserId(@RequestParam("userId") Long userId);
/**
* 根据userIds获取租户机构
*
* @param userIds
* @return
*/
@GetMapping(value = "/getTenantByUserIds")
R<List<Organization>> getTenantByUserIds(@RequestParam("userIds") List<Long> userIds);
/** /**
* 获取根组织层级 * 获取根组织层级
* *
......
...@@ -24,6 +24,12 @@ public class OrganizationServiceFallbackImpl implements OrganizationService { ...@@ -24,6 +24,12 @@ public class OrganizationServiceFallbackImpl implements OrganizationService {
} }
@Override @Override
public R<List<Organization>> getTenantByUserIds(List<Long> userIds) {
log.warn("熔断啦 {}", cause.getMessage());
return R.ok();
}
@Override
public R<List<Organization>> getRootOrganizations() { public R<List<Organization>> getRootOrganizations() {
log.warn("熔断啦 {}", cause.getMessage()); log.warn("熔断啦 {}", cause.getMessage());
return R.ok(); return R.ok();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!