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
be5e550a
Commit
be5e550a
authored
Feb 17, 2022
by
赵宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
0c5aea50
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
apps/view_choose/view.py
+7
-1
No files found.
apps/view_choose/view.py
View file @
be5e550a
...
@@ -76,11 +76,17 @@ def advice():
...
@@ -76,11 +76,17 @@ def advice():
# 根据产业名称查询园区
# 根据产业名称查询园区
zone
=
Induzone
.
query
.
filter
(
or_
(
Induzone
.
navigat
.
like
(
"
%
{}
%
"
.
format
(
industry_name
)),
zone
=
Induzone
.
query
.
filter
(
or_
(
Induzone
.
navigat
.
like
(
"
%
{}
%
"
.
format
(
industry_name
)),
Induzone
.
navigator
.
like
(
"
%
{}
%
"
.
format
(
industry_name
))))
Induzone
.
navigator
.
like
(
"
%
{}
%
"
.
format
(
industry_name
))))
print
(
zone
.
all
())
# 根据投资预算过滤
# 根据投资预算过滤
if
budget
:
if
budget
:
zone
=
zone
.
filter
(
Induzone
.
invest_power
<
budget
)
zone
=
zone
.
filter
(
Induzone
.
invest_power
<
budget
)
if
address
and
address
==
'晋城市'
:
# 如果有选址
# zone = zone.filter(or_(Induzone.upper_district == address, Induzone.development_zone == address))
zone
=
zone
.
filter
(
or_
(
Induzone
.
upper_district
==
address
))
if
address
:
# 如果有选址
if
address
:
# 如果有选址
zone
=
zone
.
filter
(
or_
(
Induzone
.
region
==
address
,
Induzone
.
development_zone
==
address
))
# zone = zone.filter(or_(Induzone.region == address, Induzone.development_zone == address))
zone
=
zone
.
filter
(
or_
(
Induzone
.
region
==
address
))
if
tax
:
# 如果有税收
if
tax
:
# 如果有税收
zone
=
zone
.
filter
(
Induzone
.
tax
<
tax
)
zone
=
zone
.
filter
(
Induzone
.
tax
<
tax
)
if
preference
[
0
]
==
"true"
:
# 如果有政府扶持力度 --- 政策数的打分
if
preference
[
0
]
==
"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