|
@@ -1,6 +1,7 @@
|
|
|
package com.fs.app.controller;
|
|
|
|
|
|
|
|
|
+import cn.hutool.json.JSONUtil;
|
|
|
import com.fs.app.annotation.Login;
|
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
|
import com.fs.common.core.domain.R;
|
|
@@ -8,12 +9,15 @@ import com.fs.common.core.domain.R;
|
|
|
import com.fs.his.service.IFsDataService;
|
|
|
import com.fs.his.service.IFsInquiryOrderService;
|
|
|
import com.fs.his.vo.ChartDataVO;
|
|
|
+import com.fs.store.config.ConceptConfig;
|
|
|
+import com.fs.system.service.ISysConfigService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
+import springfox.documentation.annotations.Cacheable;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.HashMap;
|
|
@@ -29,6 +33,8 @@ public class IndexController extends AppBaseController {
|
|
|
private IFsInquiryOrderService inquiryOrderService;
|
|
|
@Autowired
|
|
|
IFsDataService iFsDataService;
|
|
|
+ @Autowired
|
|
|
+ private ISysConfigService configService;
|
|
|
|
|
|
@Login
|
|
|
@ApiOperation("获取首页数据")
|
|
@@ -58,5 +64,14 @@ public class IndexController extends AppBaseController {
|
|
|
return R.ok().put("data",todayInquiryCount);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("企业理念")
|
|
|
+ @GetMapping("/getConcept")
|
|
|
+ @Cacheable("getConcept")
|
|
|
+ public R getConcept(HttpServletRequest request){
|
|
|
+ String json=configService.selectConfigByKey("store.concept");
|
|
|
+ ConceptConfig config = JSONUtil.toBean(json, ConceptConfig.class);
|
|
|
+ return R.ok().put("data",config);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|