if(area != 0){
//判断有没有二级
if(this.areaList(area).size() != 0){
if(area1 != 0){
//判断有没有三级
if(this.areaList(area1).size() != 0){
if(area2 != 0){
hql += " and region ="+area2;
hqlCount += " and region ="+area2;
}else{
hql += " and region in (select countryAreaId from Area where parentId ="+area1+")";
hqlCount += " and region in (select country_area_id from area where parent_id ="+area1+")";
}
}else{
hql += " and region ="+area1;
hqlCount += " and region ="+area1;
}
}else{
hql += " and region in (select countryAreaId from Area where parentId in (select countryAreaId from Area where parentId="+area+"))";
hqlCount += " and region in (select country_area_id from area where parent_id in (select country_area_id from area where parent_id="+area+"))";
}
}else{
hql += " and region ="+area;
hqlCount += " and region ="+area;
}
}