Commit 815961d4 by dong

fix20221219

parent b5a00015
......@@ -328,17 +328,17 @@ def statistic_shanxi_data():
if flag == 1:
data = [{
"district_name": target_obj.district_name,
"sign_money": target_obj.sign_money / 10000,
"sign_target_money": target_obj.sign_target_money / 10000,
"sign_finish_rate": target_obj.sign_finish_rate / 100,
"sign_money": round(target_obj.sign_money / 10000, 2),
"sign_target_money": round(target_obj.sign_target_money / 10000, 2),
"sign_finish_rate": round(target_obj.sign_finish_rate / 100, 2),
} for target_obj in target_obj_li]
data1 = sorted(data, key=lambda x: x['sign_money'], reverse=True)
data2 = sorted(data1, key=lambda x: x['sign_finish_rate'], reverse=True)
if flag == 2:
data = [{
"district_name": target_obj.district_name,
"plan_invest_money": target_obj.plan_invest_money / 10000,
"plan_target_money": target_obj.plan_target_money / 10000,
"plan_invest_money": round(target_obj.plan_invest_money / 10000, 2),
"plan_target_money": round(target_obj.plan_target_money / 10000, 2),
"plan_finish_rate": target_obj.plan_finish_rate,
} for target_obj in target_obj_li]
data1 = sorted(data, key=lambda x: x['plan_invest_money'], reverse=True)
......@@ -346,8 +346,8 @@ def statistic_shanxi_data():
if flag == 3:
data = [{
"district_name": target_obj.district_name,
"arrive_money": target_obj.arrive_money / 10000,
"arrive_target_money": target_obj.arrive_target_money / 10000,
"arrive_money": round(target_obj.arrive_money / 10000, 2),
"arrive_target_money": round(target_obj.arrive_target_money / 10000, 2),
"arrive_finish_rate": target_obj.arrive_finish_rate,
} for target_obj in target_obj_li]
data1 = sorted(data, key=lambda x: x['arrive_money'], reverse=True)
......
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