From f7b2baec57a19039ca85880bbba4e17fe27f0511 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 10 三月 2021 18:21:13 +0800
Subject: [PATCH] 删除冗余代码,初步优化首页的推荐专题,3.8.7之后在我的里面添加VIP分类

---
 src/main/java/com/yeshi/buwan/controller/admin/api/ConfigController.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/yeshi/buwan/controller/admin/api/ConfigController.java b/src/main/java/com/yeshi/buwan/controller/admin/api/ConfigController.java
index aeed876..509d32a 100644
--- a/src/main/java/com/yeshi/buwan/controller/admin/api/ConfigController.java
+++ b/src/main/java/com/yeshi/buwan/controller/admin/api/ConfigController.java
@@ -15,14 +15,14 @@
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 
-import com.yeshi.buwan.domain.Config;
-import com.yeshi.buwan.service.imp.ConfigService;
+import com.yeshi.buwan.domain.system.DetailSystemConfig;
+import com.yeshi.buwan.service.imp.DetailSystemConfigService;
 
 @Controller
 @RequestMapping("admin/new/api/config")
 public class ConfigController {
     @Resource
-    private ConfigService configService;
+    private DetailSystemConfigService configService;
 
     @Resource
     private EHCacheManager ehCacheManager;
@@ -30,7 +30,7 @@
     @RequestMapping("configList")
     public void configList(PrintWriter out) {
 
-        List<Config> list = configService.getConfig(SystemUtil.getDetailSystemId(), SystemUtil.getDefaultVersion());
+        List<DetailSystemConfig> list = configService.getConfig(SystemUtil.getDetailSystemId(), SystemUtil.getDefaultVersion());
         JSONObject json = new JSONObject();
         json.put("code", "0");
         JSONArray listJson = new JSONArray(list);
@@ -46,11 +46,11 @@
 
     @RequestMapping(value = "updateConfig", method = RequestMethod.POST)
     public void updateConfig(String vals, PrintWriter out) {
-        List<Config> list = configService.getConfig(SystemUtil.getDetailSystemId(), SystemUtil.getDefaultVersion());
+        List<DetailSystemConfig> list = configService.getConfig(SystemUtil.getDetailSystemId(), SystemUtil.getDefaultVersion());
 
         System.out.println("vals----" + vals);
         JSONObject json = new JSONObject(vals);
-        for (Config cf : list) {
+        for (DetailSystemConfig cf : list) {
             String key = cf.getKey();
             cf.setValue(json.getString(key));
 //			configService.updateConfig(cf);

--
Gitblit v1.8.0