|
@@ -11,12 +11,14 @@ import lombok.RequiredArgsConstructor;
|
|
import org.dromara.common.core.constant.CacheNames;
|
|
import org.dromara.common.core.constant.CacheNames;
|
|
import org.dromara.common.core.constant.Constants;
|
|
import org.dromara.common.core.constant.Constants;
|
|
import org.dromara.common.core.constant.TenantConstants;
|
|
import org.dromara.common.core.constant.TenantConstants;
|
|
|
|
+import org.dromara.common.core.domain.model.LoginUser;
|
|
import org.dromara.common.core.exception.ServiceException;
|
|
import org.dromara.common.core.exception.ServiceException;
|
|
import org.dromara.common.core.utils.MapstructUtils;
|
|
import org.dromara.common.core.utils.MapstructUtils;
|
|
import org.dromara.common.core.utils.SpringUtils;
|
|
import org.dromara.common.core.utils.SpringUtils;
|
|
import org.dromara.common.core.utils.StringUtils;
|
|
import org.dromara.common.core.utils.StringUtils;
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
|
+import org.dromara.common.satoken.utils.LoginHelper;
|
|
import org.dromara.system.domain.*;
|
|
import org.dromara.system.domain.*;
|
|
import org.dromara.system.domain.bo.SysTenantBo;
|
|
import org.dromara.system.domain.bo.SysTenantBo;
|
|
import org.dromara.system.domain.vo.SysTenantVo;
|
|
import org.dromara.system.domain.vo.SysTenantVo;
|
|
@@ -369,4 +371,12 @@ public class SysTenantServiceImpl implements ISysTenantService {
|
|
}
|
|
}
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public List<SysTenantVo> usernameList() {
|
|
|
|
+ String userName = LoginHelper.getLoginUser().getUsername();
|
|
|
|
+ List<SysTenantVo> tenants = baseMapper.selectVoListByUserName(userName);
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|