| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.system.entity.Tenant; |
| | | import com.vci.ubcs.system.entity.TenantPackage; |
| | | import com.vci.ubcs.system.service.ITenantPackageService; |
| | | import com.vci.ubcs.system.service.ITenantService; |
| | | import com.vci.ubcs.system.vo.TenantVO; |
| | | import io.swagger.annotations.*; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.cache.utils.CacheUtil; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.secure.BladeUser; |
| | |
| | | import org.springblade.core.tool.constant.BladeConstant; |
| | | import org.springblade.core.tool.support.Kv; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import com.vci.ubcs.system.entity.Tenant; |
| | | import com.vci.ubcs.system.entity.TenantPackage; |
| | | import com.vci.ubcs.system.vo.TenantVO; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import static com.vci.ubcs.system.cache.SysCache.TENANT_PACKAGE_ID; |
| | | import static com.vci.ubcs.system.cache.SysCache.TENANT_TENANT_ID; |
| | | import static org.springblade.core.cache.constant.CacheConstant.SYS_CACHE; |
| | | import static org.springblade.core.tenant.constant.TenantBaseConstant.TENANT_DATASOURCE_CACHE; |
| | | import static org.springblade.core.tenant.constant.TenantBaseConstant.TENANT_DATASOURCE_EXIST_KEY; |
| | | import static com.vci.ubcs.system.cache.SysCache.TENANT_PACKAGE_ID; |
| | | import static com.vci.ubcs.system.cache.SysCache.TENANT_TENANT_ID; |
| | | |
| | | /** |
| | | * 控制器 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 查询租户信息,简键值对形势 |
| | | * 查询租户信息,键值对形式 |
| | | * @return |
| | | */ |
| | | @GetMapping("/tenant-map") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "下拉租户信息") |
| | | public R<List> findAll() { |
| | | List<Map<String, Object>> map = tenantService.selectMaps(); |
| | | return R.data(map); |
| | | List<Map<String, Object>> mapList = tenantService.selectMaps(); |
| | | return R.data(mapList); |
| | | } |
| | | |
| | | /** |