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
c8eb0d0f
Commit
c8eb0d0f
authored
Feb 15, 2022
by
赵宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
bbc669dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
6 deletions
+31
-6
apps/view_radar/view.py
+31
-6
No files found.
apps/view_radar/view.py
View file @
c8eb0d0f
...
...
@@ -350,13 +350,20 @@ def recommond():
"legal"
:
com
.
legal
,
"capital_nums"
:
com
.
capital_nums
,
"entype"
:
com
.
entype
,
"high_new"
:
"高新企业"
if
com
.
high_new
==
"1"
else
""
,
"tbe"
:
""
if
com
.
tbe
==
"1"
else
""
,
"tbe"
:
"
科技型中小企业
"
if
com
.
tbe
==
"1"
else
""
,
"fianacing"
:
"融资企业"
if
com
.
fianacing
==
"1"
else
""
,
"quoted_company"
:
"上市企业"
if
com
.
quoted_company
==
"1"
else
""
,
"dengl"
:
"瞪羚企业"
if
com
.
dengl
==
"1"
else
""
,
"unicorn"
:
"独角兽企业"
if
com
.
unicorn
==
"1"
else
""
,
"isfive"
:
"500强企业"
if
com
.
isfive
==
"1"
else
""
,
"tbe_sjmy"
:
"省级民营科技企业"
if
com
.
tbe_sjmy
==
"1"
else
""
,
"zjtg_gjjxjr"
:
"国家级专精特新小巨人企业"
if
com
.
zjtg_gjjxjr
==
"1"
else
""
,
"zjtg_sjxjr"
:
"省级专精特新小巨人企业"
if
com
.
zjtg_sjxjr
==
"1"
else
""
,
"zjtg"
:
"专精特新企业"
if
com
.
zjtg
==
"1"
else
""
,
"address"
:
com
.
address
,
"telephone"
:
com
.
telephone
})
...
...
@@ -456,7 +463,25 @@ def newList():
size
=
enterprise
.
count
()
enters
=
enterprise
.
paginate
(
page
,
perpage
)
.
items
enter
=
[{
data_list
=
[]
for
i
in
enters
:
zizhi_list
=
{
"high_new"
:
"高新企业"
if
i
.
high_new
==
"1"
else
""
,
"tbe"
:
"科技型中小企业"
if
i
.
tbe
==
"1"
else
""
,
"fianacing"
:
"融资企业"
if
i
.
fianacing
==
"1"
else
""
,
"quoted_ipany"
:
"上市企业"
if
i
.
quoted_company
==
"1"
else
""
,
"dengl"
:
"瞪羚企业"
if
i
.
dengl
==
"1"
else
""
,
"unicorn"
:
"独角兽企业"
if
i
.
unicorn
==
"1"
else
""
,
"isfive"
:
"500强企业"
if
i
.
isfive
==
"1"
else
""
,
"tbe_sjmy"
:
"省级民营科技企业"
if
i
.
tbe_sjmy
==
"1"
else
""
,
"zjtg_gjjxjr"
:
"国家级专精特新小巨人企业"
if
i
.
zjtg_gjjxjr
==
"1"
else
""
,
"zjtg_sjxjr"
:
"省级专精特新小巨人企业"
if
i
.
zjtg_sjxjr
==
"1"
else
""
,
"zjtg"
:
"专精特新企业"
if
i
.
zjtg
==
"1"
else
""
,
}
enter
=
{
"id"
:
i
.
id
,
"company_name"
:
i
.
company_name
,
"city"
:
i
.
city
,
...
...
@@ -465,12 +490,12 @@ def newList():
"legal"
:
i
.
legal
,
"capital_nums"
:
i
.
capital_nums
,
"entype"
:
i
.
entype
,
"zizhi"
:
remind
,
"zizhi"
:
zizhi_list
,
"address"
:
i
.
address
,
"telephone"
:
i
.
telephone
}
for
i
in
enters
]
data
=
{
"remind"
:
remind
,
"enter"
:
enter
,
"size"
:
size
}
}
data_list
.
append
(
enter
)
data
=
{
"remind"
:
remind
,
"enter"
:
data_list
,
"size"
:
size
}
return
jsonify
(
code
=
RET
.
OK
,
msg
=
"查找成功"
,
data
=
data
)
except
Exception
as
e
:
...
...
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