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
9495ea21
Commit
9495ea21
authored
Dec 22, 2022
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20221222
parent
38b556cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
apps/inves_manage/project_manager.py
+5
-6
No files found.
apps/inves_manage/project_manager.py
View file @
9495ea21
...
@@ -329,16 +329,15 @@ def upload_project_data2():
...
@@ -329,16 +329,15 @@ def upload_project_data2():
"沁水县"
:
"140521"
,
"沁水县"
:
"140521"
,
"晋城经济技术开发区"
:
"140526"
"晋城经济技术开发区"
:
"140526"
}
}
time_strf
=
datetime
.
now
()
.
strftime
(
"
%
Y
%
m
%
d
"
)
time_strf
=
datetime
.
now
()
.
strftime
(
"
%
Y"
)
max_project_num
=
''
project_num_li
=
''
project_obj_list
=
ProjectManagement
.
query
.
all
()
project_obj_list
=
ProjectManagement
.
query
.
all
()
if
project_obj_list
:
if
project_obj_list
:
max_project_num
=
max
([
project_obj
.
project_num
for
project_obj
in
project_obj_list
if
project_obj
.
project_num
.
startswith
(
prefix_dic
[
district
])])
project_num_li
=
[
project_obj
.
project_num
for
project_obj
in
project_obj_list
if
project_obj
.
project_num
.
startswith
(
time_strf
+
prefix_dic
[
district
])]
if
max_project_num
:
if
project_num_li
:
max_project_num
=
max
_project_num
[
10
:]
max_project_num
=
max
(
project_num_li
)
[
10
:]
num
=
get_num
(
max_project_num
)
num
=
get_num
(
max_project_num
)
if
num
==
'error'
:
if
num
==
'error'
:
# return jsonify(code=RET.DATAERR, msg='编号超出三位的规定范围,请联系管理员')
return
'error'
return
'error'
project_num
=
time_strf
+
prefix_dic
[
district
]
+
num
project_num
=
time_strf
+
prefix_dic
[
district
]
+
num
else
:
else
:
...
...
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