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
7314eea0
Commit
7314eea0
authored
Dec 23, 2022
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20221223
parent
254f463d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
apps/inves_manage/project_manager.py
+18
-0
No files found.
apps/inves_manage/project_manager.py
View file @
7314eea0
...
...
@@ -1243,6 +1243,12 @@ def add_jc_data():
money_plan_invest
=
data
[
'money_plan_invest'
]
# 新开工固定资产投资项目计划投资额
money_arrive_target1
=
data
[
'money_arrive_target1'
]
# 固定资产投资项目资金到位额
money_arrive_target0
=
data
[
'money_arrive_target0'
]
# 非固定资产投资项目资金到位额
grade_sign
=
data
[
'grade_sign'
]
grade_start
=
data
[
'grade_start'
]
grade_plan_invest
=
data
[
'grade_plan_invest'
]
grade_arrive_target1
=
data
[
'grade_arrive_target1'
]
grade_arrive_target0
=
data
[
'grade_arrive_target0'
]
try
:
target_obj
=
JcTarget
.
query
.
filter_by
(
district_name
=
district_name
,
year
=
year
,
is_delete
=
0
)
.
first
()
if
target_obj
:
# 更新
...
...
@@ -1252,6 +1258,12 @@ def add_jc_data():
target_obj
.
money_plan_invest
=
money_plan_invest
target_obj
.
money_arrive_target1
=
money_arrive_target1
target_obj
.
money_arrive_target0
=
money_arrive_target0
target_obj
.
grade_sign
=
grade_sign
target_obj
.
grade_start
=
grade_start
target_obj
.
grade_plan_invest
=
grade_plan_invest
target_obj
.
grade_arrive_target1
=
grade_arrive_target1
target_obj
.
grade_arrive_target0
=
grade_arrive_target0
db
.
session
.
commit
()
else
:
target_obj
=
JcTarget
(
...
...
@@ -1267,6 +1279,12 @@ def add_jc_data():
money_plan_invest
=
money_plan_invest
,
money_arrive_target1
=
money_arrive_target1
,
money_arrive_target0
=
money_arrive_target0
,
grade_sign
=
grade_sign
,
grade_start
=
grade_start
,
grade_plan_invest
=
grade_plan_invest
,
grade_arrive_target1
=
grade_arrive_target1
,
grade_arrive_target0
=
grade_arrive_target0
,
)
db
.
session
.
add
(
target_obj
)
db
.
session
.
commit
()
...
...
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