Просмотр исходного кода

调整navCommponent 查询小区的方式

wuxw лет назад: 6
Родитель
Сommit
c6e40feff8

+ 12 - 1
WebService/src/main/java/com/java110/web/components/NavComponent.java

@@ -3,6 +3,7 @@ package com.java110.web.components;
 import com.alibaba.fastjson.JSONObject;
 import com.java110.core.context.IPageData;
 import com.java110.web.smo.INavServiceSMO;
+import com.java110.web.smo.community.IListMyEnteredCommunitysSMO;
 import com.java110.web.smo.msg.IListMsgSMO;
 import com.java110.web.smo.msg.IReadMsgSMO;
 import com.java110.web.smo.notice.IListNoticesSMO;
@@ -31,6 +32,9 @@ public class NavComponent {
     @Autowired
     private IReadMsgSMO readMsgSMOImpl;
 
+    @Autowired
+    private IListMyEnteredCommunitysSMO listMyEnteredCommunitysSMOImpl;
+
 
     /**
      * 查询通知信息
@@ -96,11 +100,18 @@ public class NavComponent {
      */
     public ResponseEntity<String> getCommunitys(IPageData pd) {
         ResponseEntity<String> responseEntity = null;
-        responseEntity = navServiceSMOImpl.listMyCommunity(pd);
+        responseEntity = listMyEnteredCommunitysSMOImpl.myCommunitys(pd);
 
         return responseEntity;
     }
 
+    public IListMyEnteredCommunitysSMO getListMyEnteredCommunitysSMOImpl() {
+        return listMyEnteredCommunitysSMOImpl;
+    }
+
+    public void setListMyEnteredCommunitysSMOImpl(IListMyEnteredCommunitysSMO listMyEnteredCommunitysSMOImpl) {
+        this.listMyEnteredCommunitysSMOImpl = listMyEnteredCommunitysSMOImpl;
+    }
 
     public INavServiceSMO getNavServiceSMOImpl() {
         return navServiceSMOImpl;