|
|
|
@ -16,6 +16,7 @@
|
|
|
|
|
*/ |
|
|
|
|
package org.springblade.system.feign; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import org.springblade.core.tenant.annotation.NonDS; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
@ -181,6 +182,14 @@ public class SysClient implements ISysClient {
|
|
|
|
|
return R.data(tenantService.getByTenantId(tenantId)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public R<Tenant> getTenantByName(String tenantName) { |
|
|
|
|
QueryWrapper queryWrapper = new QueryWrapper(); |
|
|
|
|
queryWrapper.eq("tenant_name",tenantName); |
|
|
|
|
queryWrapper.eq("is_deleted",0); |
|
|
|
|
return R.data(tenantService.getOne(queryWrapper)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@GetMapping(TENANT_PACKAGE) |
|
|
|
|
public R<TenantPackage> getTenantPackage(String tenantId) { |
|
|
|
|