Commit 4adf1161 authored by lixiaofang's avatar lixiaofang

修改取值逻辑

parent eba6ca60
......@@ -34,7 +34,8 @@ class HospitalTransfer(object):
item_dict["ori_name"] = name
item_dict["is_online"] = by_hospital_id_judge_office_online(is_online=instance.is_online,
hospital_id=instance.id, name=name)
item_dict["order_weight"] = QueryWordAttr.get_hospital_query_word_weight(name, hospital_id=instance.id)
item_dict["order_weight"] = QueryWordAttr.get_hospital_query_word_weight(name=name,
hospital_id=instance.id)
item_dict["results_num"] = QueryWordAttr.get_query_results_num(name)
item_dict["type_flag"] = get_tips_word_type(name)
item_dict["offline_score"] = 0.0
......@@ -85,7 +86,8 @@ class HospitalTransferV1(object):
item_dict["is_online"] = by_hospital_id_judge_office_online(is_online=instance.is_online,
hospital_id=instance.id, name=name)
item_dict["order_weight"] = QueryWordAttr.get_hospital_query_word_weight(name, hospital_id=instance.id)
item_dict["order_weight"] = QueryWordAttr.get_hospital_query_word_weight(name=name,
hospital_id=instance.id)
item_dict["results_num"] = QueryWordAttr.get_query_results_num(name)
item_dict["type_flag"] = get_tips_word_type(name)
item_dict["offline_score"] = 0.0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment