|
@@ -192,8 +192,7 @@ class JianYeReport(object):
|
|
|
for x in pv_data:
|
|
|
if str(x[1]) == str(house_id):
|
|
|
return x[3:]
|
|
|
- else:
|
|
|
- return [0, 0, 0, 0]
|
|
|
+ return [0, 0, 0, 0]
|
|
|
|
|
|
def house_data_of_time(self, time_range, house_ids, time_type):
|
|
|
# brand_id, house_id, house_name, city
|
|
@@ -201,11 +200,7 @@ class JianYeReport(object):
|
|
|
data_1 = []
|
|
|
for id in house_ids:
|
|
|
sub = [id]
|
|
|
- try:
|
|
|
- sub.extend(self.get_house_pv_data(id, time_type))
|
|
|
- except Exception as e:
|
|
|
- print(e)
|
|
|
- sub.extend([0, 0, 0, 0])
|
|
|
+ sub.extend(self.get_house_pv_data(id, time_type))
|
|
|
data_1.append(sub)
|
|
|
data_2 = []
|
|
|
for id in house_ids:
|
|
@@ -402,8 +397,9 @@ class JianYeReport(object):
|
|
|
|
|
|
def send_mail_for_customer_id(self, customer_id, new_mail=None):
|
|
|
"""
|
|
|
- 发送指客户的邮件
|
|
|
- :param task_key:
|
|
|
+ 获取指定客户的邮件信息
|
|
|
+ :param customer_id:
|
|
|
+ :param new_mail:
|
|
|
:return:
|
|
|
"""
|
|
|
message = {}
|