新增数量计算
Signed-off-by: yinzijian <yinzijian@haomozhixing.onaliyun.com>
This commit is contained in:
parent
89bac448f6
commit
bae939f2ca
|
|
@ -150,7 +150,11 @@ def QueryCrossPhaseDiagnosis(citycode: int, crossid: str, date_list: List, tp: s
|
|||
response = stub.CrossPhaseDiagnosis(request_params, timeout=30)
|
||||
if response.code != 0:
|
||||
raise Exception(response.msg)
|
||||
return MessageToDict(response.data), None
|
||||
|
||||
data = MessageToDict(response.data)
|
||||
if len(data) > 0:
|
||||
data['total'] = len(data['values'])
|
||||
return data, None
|
||||
except Exception as e:
|
||||
return None, e
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Reference in New Issue