@@ -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();
@@ -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);