获取租户接口新增配置信息
This commit is contained in:
@@ -159,6 +159,9 @@ public class MainController extends BaseController {
|
||||
throw new BusinessException("缺少参数tenantId");
|
||||
}
|
||||
Tenant tenant = tenantService.getByIdRel(tenantId);
|
||||
if(tenant == null){
|
||||
throw new BusinessException("该租户不存在");
|
||||
}
|
||||
// 企业信息
|
||||
Company company = companyService.getByTenantIdRel(tenantId);
|
||||
company.setBusinessEntity(null);
|
||||
@@ -181,6 +184,11 @@ public class MainController extends BaseController {
|
||||
menu.setMenuType(0);
|
||||
list.add(menu);
|
||||
tenant.setMenu(list);
|
||||
// 授权信息
|
||||
HashMap<String, Object> config = new HashMap<>();
|
||||
config.put("LICENSE_CODE","dk9mcwJyetRWQlxWRiojIzJCLi8mcQ5Wa4ojI0NWZqJWd6ICZpJCL0kjNwl1NnhENahnIvl2cyVmdiwiIiATMuEjI6IibQf0NW==");
|
||||
config.put("MAP_KEY","8191620da39a742c6f18f010c084c772");
|
||||
tenant.setConfig(config);
|
||||
return success(tenant);
|
||||
}
|
||||
|
||||
|
||||
@@ -76,4 +76,8 @@ public class Tenant implements Serializable {
|
||||
@TableField(exist = false)
|
||||
private String logo;
|
||||
|
||||
@ApiModelProperty(value = "配置信息")
|
||||
@TableField(exist = false)
|
||||
private Object config;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user