Преглед изворни кода

查询小区时取消 分页判断

wuxw пре 6 година
родитељ
комит
2f6d8346c2

+ 1 - 1
Api/src/main/java/com/java110/api/listener/community/ListMyEnteredCommunitysListener.java

@@ -67,7 +67,7 @@ public class ListMyEnteredCommunitysListener extends AbstractServiceApiListener
 
     @Override
     protected void validate(ServiceDataFlowEvent event, JSONObject reqJson) {
-        super.validatePageInfo(reqJson);
+        //super.validatePageInfo(reqJson);
         Assert.hasKeyAndValue(reqJson, "storeId", "请求报文中未包含商户信息");
         Assert.hasKeyAndValue(reqJson, "userId", "请求报文中未包含用户信息");
     }

+ 7 - 3
UserService/src/main/java/com/java110/user/smo/impl/OrgInnerServiceSMOImpl.java

@@ -56,8 +56,12 @@ public class OrgInnerServiceSMOImpl extends BaseServiceSMO implements IOrgInnerS
 
         List<OrgDto> orgs = BeanConvertUtil.covertBeanList(orgServiceDaoImpl.getOrgInfo(BeanConvertUtil.beanCovertMap(orgDto)), OrgDto.class);
 
+        String[] communityIds = getCommunityIds(orgs);
+        if (communityIds == null || communityIds.length < 0) {
+            return orgs;
+        }
         CommunityDto communityDto = new CommunityDto();
-        communityDto.setCommunityIds(getCommunityIds(orgs));
+        communityDto.setCommunityIds(communityIds);
         List<CommunityDto> communityDtos = communityInnerServiceSMOImpl.queryCommunitys(communityDto);
 
         for (CommunityDto tmpCommunityDto : communityDtos) {
@@ -108,11 +112,11 @@ public class OrgInnerServiceSMOImpl extends BaseServiceSMO implements IOrgInnerS
     private String[] getCommunityIds(List<OrgDto> orgDtos) {
         List<String> communityIds = new ArrayList<String>();
         for (OrgDto orgDto : orgDtos) {
-            if("9999".equals(orgDto.getBelongCommunityId())){
+            if ("9999".equals(orgDto.getBelongCommunityId())) {
                 orgDto.setBelongCommunityName("入驻所有小区");
                 continue;
             }
-            if(StringUtil.isEmpty(orgDto.getBelongCommunityId())){
+            if (StringUtil.isEmpty(orgDto.getBelongCommunityId())) {
                 orgDto.setBelongCommunityName("未知小区");
                 continue;
             }

+ 6 - 1
WebService/src/main/resources/components/pageFramePackage/initData/initData.js

@@ -13,9 +13,14 @@
         },
         methods: {
             _loadCommunityInfo: function (_param) {
+                var param = {
+                    params:{
+                        _uId:'ccdd00opikookjuhyyttvhnnjuuu'
+                    }
+                };
                 vc.http.get('initData',
                     'getCommunitys',
-                    '',
+                    param,
                     function (json, res) {
                         if (res.status == 200) {
                             var _communityInfos = JSON.parse(json);