From 2d6ee3420f15e0fa75b1ea0c4e5bb2b00b61c7ee Mon Sep 17 00:00:00 2001
From: 吴学文 <wuxuewen@wuxuewendeMacBook-Pro.local>
Date: 星期日, 29 九月 2019 20:03:26 +0800
Subject: [PATCH] 加入公告详情页面

---
 WebService/src/main/java/com/java110/web/components/NavComponent.java |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/WebService/src/main/java/com/java110/web/components/NavComponent.java b/WebService/src/main/java/com/java110/web/components/NavComponent.java
index bfa08f5..eef344e 100644
--- a/WebService/src/main/java/com/java110/web/components/NavComponent.java
+++ b/WebService/src/main/java/com/java110/web/components/NavComponent.java
@@ -3,6 +3,7 @@
 import com.alibaba.fastjson.JSONObject;
 import com.java110.core.context.IPageData;
 import com.java110.web.smo.INavServiceSMO;
+import com.java110.web.smo.notice.IListNoticesSMO;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.HttpStatus;
 import org.springframework.http.ResponseEntity;
@@ -19,6 +20,9 @@
     @Autowired
     private INavServiceSMO navServiceSMOImpl;
 
+    @Autowired
+    private IListNoticesSMO listNoticesSMOImpl;
+
 
     /**
      * 鏌ヨ閫氱煡淇℃伅
@@ -28,16 +32,7 @@
      */
     public ResponseEntity<String> getNavData(IPageData pd) {
 
-        String result = "{'noticeSize':10,"
-                + "'moreNoticeUrl':'/moreNotice','notices':["
-                + "{'msg':'鏂扮郴缁熷紑鍙戞祴璇�','date':'2019-03-19'},"
-                + "{'msg':'鏉冮檺妫�鏌ユ祴璇�','date':'2019-03-21'},"
-                + "{'msg':'绯荤粺娆插紑鍙戞祴璇�','date':'2019-03-20'}"
-                + "]}";
-
-        JSONObject nav = JSONObject.parseObject(result);
-
-        return new ResponseEntity<String>(nav.toJSONString(), HttpStatus.OK);
+        return listNoticesSMOImpl.listNotices(pd);
     }
 
 
@@ -97,5 +92,11 @@
         this.navServiceSMOImpl = navServiceSMOImpl;
     }
 
+    public IListNoticesSMO getListNoticesSMOImpl() {
+        return listNoticesSMOImpl;
+    }
 
+    public void setListNoticesSMOImpl(IListNoticesSMO listNoticesSMOImpl) {
+        this.listNoticesSMOImpl = listNoticesSMOImpl;
+    }
 }

--
Gitblit v1.8.0