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
6d6f4b3b
Commit
6d6f4b3b
authored
Jul 21, 2023
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20230721
parent
db6ce03b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
21 deletions
+42
-21
apps/inves_manage/project_manager.py
+17
-10
apps/inves_manage/siku_view.py
+6
-2
apps/inves_manage/statistic_analysis_view.py
+5
-3
apps/view_choose/fill_data.py
+14
-6
No files found.
apps/inves_manage/project_manager.py
View file @
6d6f4b3b
...
...
@@ -489,6 +489,7 @@ def batch_export_project5():
# path = './apps/statics/project_file/'
# pro_path = 'http://39.100.39.50:5050/statics/project_file/' # 项目路径
path
=
'/root/code/dist_jincheng/aaa_statics/project_file/'
pro_path
=
SERVER_NAME
+
'/aaa_statics/project_file/'
# 项目路径
if
not
select_id_list
:
return
jsonify
(
code
=
RET
.
PARAMERR
,
msg
=
"参数不能为空!"
)
...
...
@@ -594,7 +595,7 @@ def batch_export_project5():
sheet
.
write
(
i
+
1
,
j
,
target_data_list
[
i
][
j
])
time_stamp
=
'{0:
%
Y
%
m
%
d
%
H
%
M
%
S}'
.
format
(
datetime
.
now
())
file_name
=
"招商引资项目表{}.xlsx"
.
format
(
time_stamp
)
excel
.
save
(
p
ro_p
ath
+
file_name
)
excel
.
save
(
path
+
file_name
)
return
jsonify
(
code
=
RET
.
OK
,
url
=
pro_path
+
file_name
,
msg
=
"导出/下载成功!"
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
...
...
@@ -1116,9 +1117,11 @@ def download_shanxi_data():
req_dic
=
request
.
get_json
()
data_time
=
req_dic
[
"data_time"
]
path
=
'./apps/statics/project_file/'
pro_path
=
'http://39.100.39.50:5050/statics/project_file/'
# 项目路径
# pro_path = SERVER_NAME + '/aaa_statics/project_file/' # 项目路径
# path = './apps/statics/project_file/'
# pro_path = 'http://39.100.39.50:5050/statics/project_file/' # 项目路径
path
=
'/root/code/dist_jincheng/aaa_statics/project_file/'
pro_path
=
SERVER_NAME
+
'/aaa_statics/project_file/'
# 项目路径
if
not
data_time
:
return
jsonify
(
code
=
RET
.
PARAMERR
,
msg
=
"参数不能为空!"
)
target_data_list
=
[]
...
...
@@ -1513,9 +1516,11 @@ def download_jc_data():
req_dic
=
request
.
get_json
()
year
=
req_dic
[
"year"
]
path
=
'./apps/statics/project_file/'
pro_path
=
'http://39.100.39.50:5050/statics/project_file/'
# 项目路径
# pro_path = SERVER_NAME + '/aaa_statics/project_file/' # 项目路径
# path = './apps/statics/project_file/'
# pro_path = 'http://39.100.39.50:5050/statics/project_file/' # 项目路径
path
=
'/root/code/dist_jincheng/aaa_statics/project_file/'
pro_path
=
SERVER_NAME
+
'/aaa_statics/project_file/'
# 项目路径
if
not
year
:
return
jsonify
(
code
=
RET
.
PARAMERR
,
msg
=
"参数不能为空!"
)
target_data_list
=
[]
...
...
@@ -1815,9 +1820,11 @@ def download_money_arrive():
req_dic
=
request
.
get_json
()
data_time
=
req_dic
[
"data_time"
]
path
=
'./apps/statics/project_file/'
pro_path
=
'http://39.100.39.50:5050/statics/project_file/'
# 项目路径
# pro_path = SERVER_NAME + '/aaa_statics/project_file/' # 项目路径
# path = './apps/statics/project_file/'
# pro_path = 'http://39.100.39.50:5050/statics/project_file/' # 项目路径
path
=
'/root/code/dist_jincheng/aaa_statics/project_file/'
pro_path
=
SERVER_NAME
+
'/aaa_statics/project_file/'
# 项目路径
if
not
data_time
:
return
jsonify
(
code
=
RET
.
PARAMERR
,
msg
=
"参数不能为空!"
)
target_data_list
=
[]
...
...
apps/inves_manage/siku_view.py
View file @
6d6f4b3b
...
...
@@ -1980,6 +1980,8 @@ def batch_export_project3():
# path = './apps/statics/project_file/'
# pro_path = 'D:/中研项目代码/flask_jincheng/apps/statics/project_file/'
# pro_path = 'http://39.100.39.50:5050/statics/project_file/' # 项目路径
path
=
'/root/code/dist_jincheng/aaa_statics/project_file/'
pro_path
=
SERVER_NAME
+
'/aaa_statics/project_file/'
# 项目路径
if
not
select_id_list
:
...
...
@@ -2085,7 +2087,7 @@ def batch_export_project3():
sheet
.
write
(
i
+
1
,
j
,
target_data_list
[
i
][
j
])
time_stamp
=
'{0:
%
Y
%
m
%
d
%
H
%
M
%
S}'
.
format
(
datetime
.
now
())
file_name
=
"签约库数据{}.xlsx"
.
format
(
time_stamp
)
excel
.
save
(
p
ro_p
ath
+
file_name
)
excel
.
save
(
path
+
file_name
)
# 记录项目动态
for
project_id
in
select_id_list
:
...
...
@@ -2112,6 +2114,8 @@ def batch_export_project4():
# path = './apps/statics/project_file/'
# pro_path = 'D:/中研项目代码/flask_jincheng/apps/statics/project_file/'
# pro_path = 'http://39.100.39.50:5050/statics/project_file/' # 项目路径
path
=
'/root/code/dist_jincheng/aaa_statics/project_file/'
pro_path
=
SERVER_NAME
+
'/aaa_statics/project_file/'
# 项目路径
if
not
select_id_list
:
...
...
@@ -2212,7 +2216,7 @@ def batch_export_project4():
sheet
.
write
(
i
+
1
,
j
,
target_data_list
[
i
][
j
])
time_stamp
=
'{0:
%
Y
%
m
%
d
%
H
%
M
%
S}'
.
format
(
datetime
.
now
())
file_name
=
"开工库数据{}.xlsx"
.
format
(
time_stamp
)
excel
.
save
(
p
ro_p
ath
+
file_name
)
excel
.
save
(
path
+
file_name
)
# 记录项目动态
for
project_id
in
select_id_list
:
...
...
apps/inves_manage/statistic_analysis_view.py
View file @
6d6f4b3b
...
...
@@ -10,6 +10,7 @@ from dateutil.relativedelta import relativedelta
from
flask
import
current_app
,
jsonify
,
request
from
sqlalchemy
import
and_
,
or_
import
zipfile
from
apps
import
SERVER_NAME
from
apps.models
import
*
...
...
@@ -1022,10 +1023,11 @@ def export_jc_data():
req_dic
=
request
.
get_json
()
flag
=
req_dic
[
'flag'
]
# 1县(市、区)、开发区指标,2开发区(示范区)指标
data_time
=
req_dic
[
'data_time'
]
path
=
'./apps/statics/project_file/'
#
path = './apps/statics/project_file/'
# pro_path = 'http://39.100.39.50:8008/aaa_statics/project_file/' # 项目路径
pro_path
=
'http://39.100.39.50:5050/statics/project_file/'
# 项目路径
# pro_path = 'http://39.100.39.50:5050/statics/project_file/' # 项目路径
path
=
'/root/code/dist_jincheng/aaa_statics/project_file/'
pro_path
=
SERVER_NAME
+
'/aaa_statics/project_file/'
# 项目路径
if
flag
==
1
:
res
=
export_jc_data1
(
data_time
,
path
,
pro_path
)
if
res
==
'error'
:
...
...
apps/view_choose/fill_data.py
View file @
6d6f4b3b
...
...
@@ -763,8 +763,11 @@ def batch_export_build():
return
jsonify
(
code
=
RET
.
SESSIONERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
select_id_list
=
req_dic
[
"select_id_list"
]
path
=
'./apps/statics/carrier_file/'
pro_path
=
'http://39.100.39.50:5050/statics/carrier_file/'
# 项目路径
# path = './apps/statics/carrier_file/'
# pro_path = 'http://39.100.39.50:5050/statics/carrier_file/' # 项目路径
path
=
'/root/code/dist_jincheng/aaa_statics/carrier_file/'
pro_path
=
SERVER_NAME
+
'/aaa_statics/carrier_file/'
# 项目路径
try
:
if
not
select_id_list
:
return
jsonify
(
code
=
RET
.
PARAMERR
,
msg
=
"参数不能为空!"
)
...
...
@@ -918,9 +921,11 @@ def batch_export_land():
return
jsonify
(
code
=
RET
.
SESSIONERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
select_id_list
=
req_dic
[
"select_id_list"
]
path
=
'./apps/statics/carrier_file/'
pro_path
=
'http://39.100.39.50:5050/statics/carrier_file/'
# 项目路径
#
path = './apps/statics/carrier_file/'
#
pro_path = 'http://39.100.39.50:5050/statics/carrier_file/' # 项目路径
path
=
'/root/code/dist_jincheng/aaa_statics/carrier_file/'
pro_path
=
SERVER_NAME
+
'/aaa_statics/carrier_file/'
# 项目路径
try
:
if
not
select_id_list
:
return
jsonify
(
code
=
RET
.
PARAMERR
,
msg
=
"参数不能为空!"
)
...
...
@@ -1062,9 +1067,12 @@ def batch_export_factory():
return
jsonify
(
code
=
RET
.
SESSIONERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
select_id_list
=
req_dic
[
"select_id_list"
]
path
=
'./apps/statics/carrier_file/'
#
path = './apps/statics/carrier_file/'
# pro_path = 'http://192.168.31.154:5000/static/' # 项目路径
pro_path
=
'http://39.100.39.50:5050/statics/carrier_file/'
# 项目路径
# pro_path = 'http://39.100.39.50:5050/statics/carrier_file/' # 项目路径
path
=
'/root/code/dist_jincheng/aaa_statics/carrier_file/'
pro_path
=
SERVER_NAME
+
'/aaa_statics/carrier_file/'
# 项目路径
try
:
if
not
select_id_list
:
return
jsonify
(
code
=
RET
.
PARAMERR
,
msg
=
"参数不能为空!"
)
...
...
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