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
9627c9a6
Commit
9627c9a6
authored
Nov 12, 2023
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4e346a19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
apps/view_radar/view.py
+12
-11
No files found.
apps/view_radar/view.py
View file @
9627c9a6
...
@@ -1217,6 +1217,8 @@ def radar_enums():
...
@@ -1217,6 +1217,8 @@ def radar_enums():
enterprise
=
enterprise
.
filter_by
(
district
=
district
)
enterprise
=
enterprise
.
filter_by
(
district
=
district
)
size
=
[]
size
=
[]
company
=
[]
if
product
:
if
product
:
# 有可能会变成模糊查询
# 有可能会变成模糊查询
# enterprise = enterprise.filter(or_(
# enterprise = enterprise.filter(or_(
...
@@ -1224,7 +1226,6 @@ def radar_enums():
...
@@ -1224,7 +1226,6 @@ def radar_enums():
# Enterprise.product_all1.like("%{}%".format(product)),
# Enterprise.product_all1.like("%{}%".format(product)),
# Enterprise.product_all2.like("%{}%".format(product))
# Enterprise.product_all2.like("%{}%".format(product))
# ))
# ))
company
=
[]
# indu_obj_li = get_product_li(product, inid)
# indu_obj_li = get_product_li(product, inid)
# for indu_name in indu_obj_li:
# for indu_name in indu_obj_li:
...
@@ -1255,23 +1256,23 @@ def radar_enums():
...
@@ -1255,23 +1256,23 @@ def radar_enums():
# for indu_name in indu_obj_li:
# for indu_name in indu_obj_li:
# indu_name = indu_obj.industry_name
# indu_name = indu_obj.industry_name
# print("正在查询【{}】的相关企业......".format(indu_name))
# print("正在查询【{}】的相关企业......".format(indu_name))
indu_obj
=
Industry
.
query
.
get
(
inid
)
#
indu_obj = Industry.query.get(inid)
indu_name
=
indu_obj
.
name
#
indu_name = indu_obj.name
company1
=
Enterprise
.
query
.
filter
(
company1
=
Enterprise
.
query
.
filter
(
Enterprise
.
c_type
==
inid
,
Enterprise
.
c_type
==
inid
,
Enterprise
.
product_all
.
like
(
"
%
{}
%
"
.
format
(
indu_name
))
Enterprise
.
product_all
.
like
(
"
%
{}
%
"
.
format
(
product
))
)
.
all
()
)
.
all
()
company
+=
company1
company
+=
company1
# print(company1)
# print(company1)
company2
=
Enterprise
.
query
.
filter
(
company2
=
Enterprise
.
query
.
filter
(
Enterprise
.
c_type1
==
inid
,
Enterprise
.
c_type1
==
inid
,
Enterprise
.
product_all1
.
like
(
"
%
{}
%
"
.
format
(
indu_name
))
Enterprise
.
product_all1
.
like
(
"
%
{}
%
"
.
format
(
product
))
)
.
all
()
)
.
all
()
company
+=
company2
company
+=
company2
# print(company2)
# print(company2)
company3
=
Enterprise
.
query
.
filter
(
company3
=
Enterprise
.
query
.
filter
(
Enterprise
.
c_type2
==
inid
,
Enterprise
.
c_type2
==
inid
,
Enterprise
.
product_all2
.
like
(
"
%
{}
%
"
.
format
(
indu_name
))
Enterprise
.
product_all2
.
like
(
"
%
{}
%
"
.
format
(
product
))
)
.
all
()
)
.
all
()
company
+=
company3
company
+=
company3
...
@@ -1534,23 +1535,23 @@ def newList1():
...
@@ -1534,23 +1535,23 @@ def newList1():
# company += company3
# company += company3
# company = set(company)
# company = set(company)
indu_obj
=
Industry
.
query
.
get
(
inid
)
#
indu_obj = Industry.query.get(inid)
indu_name
=
indu_obj
.
name
#
indu_name = indu_obj.name
company1
=
Enterprise
.
query
.
filter
(
company1
=
Enterprise
.
query
.
filter
(
Enterprise
.
c_type
==
inid
,
Enterprise
.
c_type
==
inid
,
Enterprise
.
product_all
.
like
(
"
%
{}
%
"
.
format
(
indu_name
))
Enterprise
.
product_all
.
like
(
"
%
{}
%
"
.
format
(
product
))
)
.
all
()
)
.
all
()
company
+=
company1
company
+=
company1
# print(company1)
# print(company1)
company2
=
Enterprise
.
query
.
filter
(
company2
=
Enterprise
.
query
.
filter
(
Enterprise
.
c_type1
==
inid
,
Enterprise
.
c_type1
==
inid
,
Enterprise
.
product_all1
.
like
(
"
%
{}
%
"
.
format
(
indu_name
))
Enterprise
.
product_all1
.
like
(
"
%
{}
%
"
.
format
(
product
))
)
.
all
()
)
.
all
()
company
+=
company2
company
+=
company2
# print(company2)
# print(company2)
company3
=
Enterprise
.
query
.
filter
(
company3
=
Enterprise
.
query
.
filter
(
Enterprise
.
c_type2
==
inid
,
Enterprise
.
c_type2
==
inid
,
Enterprise
.
product_all2
.
like
(
"
%
{}
%
"
.
format
(
indu_name
))
Enterprise
.
product_all2
.
like
(
"
%
{}
%
"
.
format
(
product
))
)
.
all
()
)
.
all
()
company
+=
company3
company
+=
company3
company
=
set
(
company
)
company
=
set
(
company
)
...
...
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