|
@@ -141,7 +141,7 @@ class JianYeReport(object):
|
|
def get_house_id_by_brand_id(self, brand_id):
|
|
def get_house_id_by_brand_id(self, brand_id):
|
|
result = []
|
|
result = []
|
|
for x in self.get_city_house_id():
|
|
for x in self.get_city_house_id():
|
|
- if str(x[0]) == str(brand_id) and x[1] is not None and len(x[1]) > 4:
|
|
|
|
|
|
+ if str(x[0]) == str(brand_id):
|
|
result.append(x[1])
|
|
result.append(x[1])
|
|
return result
|
|
return result
|
|
|
|
|
|
@@ -239,16 +239,19 @@ class JianYeReport(object):
|
|
result = []
|
|
result = []
|
|
for id in house_ids:
|
|
for id in house_ids:
|
|
sub = []
|
|
sub = []
|
|
- for x in self.house_region:
|
|
|
|
- if str(x[1]) == str(id):
|
|
|
|
- sub.append(x[3])
|
|
|
|
- if len(sub) == 0:
|
|
|
|
- sub.append(' ')
|
|
|
|
- for x in city_info:
|
|
|
|
- if str(id) == str(x[1]):
|
|
|
|
- sub.extend([x[3], x[2]])
|
|
|
|
- if len(sub) == 0:
|
|
|
|
- sub.extend(['0000', '0000'])
|
|
|
|
|
|
+ if id == '0':
|
|
|
|
+ sub.append(['品牌层', '品牌层', '品牌层'])
|
|
|
|
+ else:
|
|
|
|
+ for x in self.house_region:
|
|
|
|
+ if str(x[1]) == str(id):
|
|
|
|
+ sub.append(x[3])
|
|
|
|
+ if len(sub) == 0:
|
|
|
|
+ sub.append(' ')
|
|
|
|
+ for x in city_info:
|
|
|
|
+ if str(id) == str(x[1]):
|
|
|
|
+ sub.extend([x[3], x[2]])
|
|
|
|
+ if len(sub) == 0:
|
|
|
|
+ sub.extend(['0000', '0000'])
|
|
for x in data_1:
|
|
for x in data_1:
|
|
if str(id) == str(x[0]):
|
|
if str(id) == str(x[0]):
|
|
sub.extend(x[1:])
|
|
sub.extend(x[1:])
|