Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mancheng
Commits
815961d4
Commit
815961d4
authored
Dec 19, 2022
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20221219
parent
b5a00015
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
apps/inves_manage/statistic_analysis_view.py
+7
-7
No files found.
apps/inves_manage/statistic_analysis_view.py
View file @
815961d4
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment