|
@@ -3,6 +3,8 @@ package com.zhongzheng.controller.common;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.lang.Validator;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
|
import com.zhongzheng.common.config.RuoYiConfig;
|
|
@@ -407,4 +409,17 @@ public class CommonController
|
|
|
return AjaxResult.error(511,"失败",null);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取企业ID
|
|
|
+ */
|
|
|
+ @ApiOperation("获取系统配置")
|
|
|
+ @GetMapping("common/free/config")
|
|
|
+ public AjaxResult<Map<String,Object>> findConfig(SysTenantQueryBo bo) {
|
|
|
+ Map<String,Object> map = new HashMap<>();
|
|
|
+ String jsonStr = configService.selectConfigByKey("home.header");
|
|
|
+ JSONObject objectJson = JSON.parseObject(jsonStr);
|
|
|
+ map.put("companyName",String.valueOf(objectJson.get("companyName")));
|
|
|
+ return AjaxResult.success(map);
|
|
|
+ }
|
|
|
}
|