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
c3cd2b4a
Commit
c3cd2b4a
authored
Jan 13, 2023
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20230113
parent
a2812c99
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
apps/inves_manage/project_manager.py
+1
-1
apps/inves_manage/siku_view.py
+2
-2
No files found.
apps/inves_manage/project_manager.py
View file @
c3cd2b4a
...
...
@@ -434,7 +434,7 @@ def upload_project_data2():
if
success_num
>
0
:
return
jsonify
(
code
=
RET
.
OK
,
msg
=
'上传成功!数据上传 {} 条数据,{}已存在同名项目
未上传
。'
.
format
(
success_num
,
rep_project_name_list
))
msg
=
'上传成功!数据上传 {} 条数据,{}已存在同名项目。'
.
format
(
success_num
,
rep_project_name_list
))
else
:
return
jsonify
(
code
=
RET
.
DATAERR
,
msg
=
'无新数据上传。'
)
...
...
apps/inves_manage/siku_view.py
View file @
c3cd2b4a
...
...
@@ -491,8 +491,8 @@ def search_project():
project_obj
=
SikuProject
.
query
.
filter
(
SikuProject
.
flag
>=
flag
if
flag
else
text
(
''
),
# 线索库包含所有阶段的项目
SikuProject
.
is_delete
==
0
,
SikuProject
.
project_to_area
==
user_district
if
flag
==
2
and
user_district
!=
'晋城市'
else
text
(
''
),
SikuProject
.
project_to_area1
==
user_district
if
flag
in
[
3
,
4
]
and
user_district
!=
'晋城市'
else
text
(
''
),
SikuProject
.
project_to_area
==
user_district
if
flag
in
[
2
,
3
,
4
]
and
user_district
!=
'晋城市'
else
text
(
''
),
#
SikuProject.project_to_area1 == user_district if flag in [3, 4] and user_district != '晋城市' else text(''),
SikuProject
.
distribute_condition
.
in_
(
distribute_condition_list
)
if
distribute_condition_list
else
SikuProject
.
distribute_condition
==
distribute_condition
if
distribute_condition
else
text
(
''
),
SikuProject
.
project_name
.
like
(
'
%
{}
%
'
.
format
(
project_name
))
if
project_name
else
text
(
''
),
...
...
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