|
@@ -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.R;
|
|
|
|
|
@@ -8,6 +9,8 @@ import com.fs.his.domain.*;
|
|
|
import com.fs.his.param.*;
|
|
|
import com.fs.his.service.*;
|
|
|
import com.fs.his.vo.*;
|
|
|
+import com.fs.store.config.ConceptConfig;
|
|
|
+import com.fs.system.service.ISysConfigService;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -40,6 +43,9 @@ public class IndexController extends AppBaseController {
|
|
|
@Autowired
|
|
|
private IFsVesselService vesselService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ISysConfigService configService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private IFsChineseMedicineService chineseMedicineService;
|
|
|
|
|
@@ -134,4 +140,14 @@ public class IndexController extends AppBaseController {
|
|
|
return R.ok().put("data",chineseMedicine);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("企业理念")
|
|
|
+ @GetMapping("/getConcept")
|
|
|
+ @springfox.documentation.annotations.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);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|