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
905997cb
Commit
905997cb
authored
Feb 02, 2023
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20230202
parent
ab2d6c1e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
3 deletions
+2
-3
apps/models.py
+1
-0
apps/view_choose/common.py
+0
-1
apps/view_choose/map_view.py
+0
-2
apps/view_map/view.py
+1
-0
No files found.
apps/models.py
View file @
905997cb
...
...
@@ -106,6 +106,7 @@ class Enterprise(db.Model):
isfive
=
db
.
Column
(
db
.
String
(
32
),
doc
=
'是否中国500强'
,
comment
=
'是否中国500强'
)
# 是否中国500强
product_all
=
db
.
Column
(
db
.
String
(
255
),
doc
=
'公司拥有产品'
,
comment
=
'公司拥有产品'
)
# 公司拥有产品
product_all1
=
db
.
Column
(
db
.
String
(
255
),
doc
=
'公司拥有产品'
,
comment
=
'公司拥有产品'
)
# 公司拥有产品
takingn
=
db
.
Column
(
db
.
Float
,
doc
=
'营收'
,
comment
=
'营收'
)
# 营收
hots
=
db
.
Column
(
db
.
Integer
,
doc
=
'企业热度(权重值)'
,
comment
=
'企业热度(权重值)'
)
# 企业热度(权重值)
...
...
apps/view_choose/common.py
View file @
905997cb
...
...
@@ -16,7 +16,6 @@ class Common(object):
)
.
all
()
return
area_obj_list
@staticmethod
def
get_total_factory_area
(
time1
,
time2
,
district_name
):
area_obj_list
=
CarrierFactory
.
query
.
filter
(
...
...
apps/view_choose/map_view.py
View file @
905997cb
...
...
@@ -174,7 +174,6 @@ def show_area():
else
:
total_empty_rate
=
0
# 今年的闲置率
if
build_current_total_area
!=
0
:
current_build_empty_rate
=
round
((
build_current_empty_area
/
build_current_total_area
)
*
100
,
2
)
...
...
@@ -234,7 +233,6 @@ def carrier_energy():
"life_gas_three"
:
energy_obj
.
life_gas_three
}
}
return
jsonify
(
code
=
RET
.
OK
,
data
=
data
,
msg
=
'数据查询成功!'
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DBERR
,
msg
=
'数据查询错误!'
)
...
...
apps/view_map/view.py
View file @
905997cb
...
...
@@ -346,6 +346,7 @@ def attract_enterprise():
try
:
enterprise_obj
=
Enterprise
.
query
.
filter
(
Enterprise
.
product_all
.
like
(
"
%
{}
%
"
.
format
(
product
))
if
product
else
text
(
''
),
Enterprise
.
product_all1
.
like
(
"
%
{}
%
"
.
format
(
product
))
if
product
else
text
(
''
),
# 测试用
Enterprise
.
entype
.
like
(
'
%
{}
%
'
.
format
(
entype
))
if
entype
else
text
(
''
),
Enterprise
.
company_name
.
like
(
'
%
{}
%
'
.
format
(
company_name
))
if
company_name
else
text
(
''
),
Enterprise
.
c_type
==
inid
if
inid
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