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
671028c4
Commit
671028c4
authored
Dec 10, 2022
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20221210
parent
f7062ce5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
apps/view_choose/view.py
+8
-1
No files found.
apps/view_choose/view.py
View file @
671028c4
...
...
@@ -42,6 +42,9 @@ def default_address():
"charge"
:
i
.
charge
if
i
.
charge
else
"-"
,
# 园区负责人
"phone"
:
i
.
phone
if
i
.
phone
else
"-"
,
# 园区电话
"address"
:
i
.
address
,
# 园区地址
"gdp"
:
i
.
gdp
,
"area"
:
i
.
area
,
"navigat"
:
i
.
navigat
,
# "address": i.region, # 园区地址
"jwd"
:
{
"lng"
:
i
.
lng
,
"lat"
:
i
.
lat
}}
for
i
in
result
],
"all_jwd"
:
all_jwd
,
"size"
:
size
}
if
not
result
:
...
...
@@ -79,9 +82,13 @@ def advice():
# 根据产业名称查询园区
# zone = Induzone.query.filter(or_(Induzone.navigat.like("%{}%".format(industry_name)),
# Induzone.navigator.like("%{}%".format(industry_name))))
zone
=
Induzone
.
query
.
filter
(
Induzone
.
district
==
'address'
)
zone
=
Induzone
.
query
.
filter
(
Induzone
.
district
==
address
if
address
else
text
(
""
)
)
print
(
zone
.
all
())
if
product
:
zone
=
zone
.
filter
(
Induzone
.
navigat
.
like
(
'
%
{}
%
'
.
format
(
product
)))
# 根据投资预算过滤
if
budget
:
zone
=
zone
.
filter
(
Induzone
.
invest_power
<
float
(
budget
))
...
...
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