Commit 0e9cc4b6 by zhouhaibao

[+]试驾服务

1 parent 9d878fd9
...@@ -25,9 +25,18 @@ public class OrganizaService { ...@@ -25,9 +25,18 @@ public class OrganizaService {
R<List<Organization>> listR = organizationService.getTenantPathsByUserId(efd.getCreatedBy()); R<List<Organization>> listR = organizationService.getTenantPathsByUserId(efd.getCreatedBy());
List<Organization> orgList = listR.getDataList(type); List<Organization> orgList = listR.getDataList(type);
if (CollectionUtils.isNotEmpty(orgList)) { if (CollectionUtils.isNotEmpty(orgList)) {
efd.setArea(orgList.get(1).getOrgName()); int size = orgList.size();
efd.setProvince(orgList.get(2).getOrgName()); if(size<2){
efd.setCity(orgList.get(3).getOrgName()); return;
}else{
efd.setArea(orgList.get(1).getOrgName());
if(size>2){
efd.setProvince(orgList.get(2).getOrgName());
}
if(size>3){
efd.setCity(orgList.get(3).getOrgName());
}
}
} }
}); });
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!