Explorar el Código

解决判断小于零的问题

wuxw hace 6 años
padre
commit
05eac8f923

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

@@ -57,7 +57,7 @@ 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) {
+        if (communityIds == null || communityIds.length < 1) {
             return orgs;
         }
         CommunityDto communityDto = new CommunityDto();

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

@@ -121,9 +121,14 @@
                 /**
                  [{community:"123123",name:"测试1小区"},{community:"223123",name:"测试2小区"}]
                  **/
+                var param = {
+                    params:{
+                        _uid:'123mlkdinkldldijdhuudjdjkkd'
+                    }
+                };
                 vc.http.get('nav',
                     'getCommunitys',
-                    '',
+                    param,
                     function (json, res) {
                         if (res.status == 200) {
                             vm.navCommunityInfo.communityInfos = JSON.parse(json);