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
42720040
Commit
42720040
authored
Apr 03, 2023
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20230403
parent
8109a63f
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
14 deletions
+12
-14
apps/view_360company/view.py
+2
-4
apps/view_atlas/view.py
+2
-2
apps/view_index/view.py
+1
-1
apps/view_map/view.py
+1
-1
apps/view_radar/view.py
+1
-1
apps/view_user/view.py
+4
-4
apps/view_xiaocx/view.py
+1
-1
No files found.
apps/view_360company/view.py
View file @
42720040
...
@@ -53,7 +53,7 @@ def get_all_enterprise():
...
@@ -53,7 +53,7 @@ def get_all_enterprise():
"tbe"
:
'科技型中小企业'
if
enterprise
.
tbe
==
'1'
else
""
,
"tbe"
:
'科技型中小企业'
if
enterprise
.
tbe
==
'1'
else
""
,
"quoted_enterprise"
:
'上市企业'
if
enterprise
.
quoted_company
==
'1'
else
""
,
"quoted_enterprise"
:
'上市企业'
if
enterprise
.
quoted_company
==
'1'
else
""
,
"unicorn"
:
'独角兽企业'
if
enterprise
.
unicorn
==
'1'
else
""
,
"unicorn"
:
'独角兽企业'
if
enterprise
.
unicorn
==
'1'
else
""
,
"dengl"
:
'瞪羚'
if
enterprise
.
dengl
==
'1'
else
""
,
"dengl"
:
'瞪羚
企业
'
if
enterprise
.
dengl
==
'1'
else
""
,
"isfive"
:
'中国500强'
if
enterprise
.
isfive
==
'1'
else
""
,
"isfive"
:
'中国500强'
if
enterprise
.
isfive
==
'1'
else
""
,
"zjtg"
:
'专精特新企业'
if
enterprise
.
zjtg
==
'1'
else
""
,
"zjtg"
:
'专精特新企业'
if
enterprise
.
zjtg
==
'1'
else
""
,
"zjtg_gjjxjr"
:
'国家级专精特新小巨人企业'
if
enterprise
.
zjtg_gjjxjr
==
'1'
else
""
,
"zjtg_gjjxjr"
:
'国家级专精特新小巨人企业'
if
enterprise
.
zjtg_gjjxjr
==
'1'
else
""
,
...
@@ -263,9 +263,7 @@ def search():
...
@@ -263,9 +263,7 @@ def search():
try
:
try
:
es
=
Elasticsearch
([{
'host'
:
'39.100.39.50'
,
'port'
:
9200
}])
es
=
Elasticsearch
([{
'host'
:
'39.100.39.50'
,
'port'
:
9200
}])
data
=
es
.
search
(
index
=
"jc_enterperise"
,
body
=
body
)
# data = es.search(index="jincheng_pictext_index_202303161620_76c624b8", body=body)
data
=
es
.
search
(
index
=
"jc_enterperise1"
,
body
=
body
)
data_list
=
[]
data_list
=
[]
# print(data_list)
# print(data_list)
size
=
data
[
"hits"
][
'total'
]
size
=
data
[
"hits"
][
'total'
]
...
...
apps/view_atlas/view.py
View file @
42720040
...
@@ -1099,7 +1099,7 @@ def search_enterprise():
...
@@ -1099,7 +1099,7 @@ def search_enterprise():
"山西民营100强"
if
company_obj
.
sxmon
==
'1'
else
"山西民营100强"
if
company_obj
.
sxmon
==
'1'
else
"山西专精特新企业"
if
company_obj
.
zjtg
==
'1'
else
"山西专精特新企业"
if
company_obj
.
zjtg
==
'1'
else
"独角兽企业"
if
company_obj
.
unicorn
==
'1'
else
"独角兽企业"
if
company_obj
.
unicorn
==
'1'
else
"瞪羚"
if
company_obj
.
dengl
==
'1'
else
"瞪羚
企业
"
if
company_obj
.
dengl
==
'1'
else
"中国500强"
if
company_obj
.
isfive
==
'1'
else
"中国500强"
if
company_obj
.
isfive
==
'1'
else
"规模以上企业"
if
company_obj
.
scale
==
'1'
else
"规模以上企业"
if
company_obj
.
scale
==
'1'
else
"限额以上服务业"
if
company_obj
.
serve
==
'1'
else
''
]
"限额以上服务业"
if
company_obj
.
serve
==
'1'
else
''
]
...
@@ -1227,7 +1227,7 @@ def industry_enterprise():
...
@@ -1227,7 +1227,7 @@ def industry_enterprise():
"sxmon"
:
'山西民营100强'
if
i
.
sxmon
==
'1'
else
''
,
"sxmon"
:
'山西民营100强'
if
i
.
sxmon
==
'1'
else
''
,
"zjtg"
:
'山西专精特新企业'
if
i
.
zjtg
==
'1'
else
''
,
"zjtg"
:
'山西专精特新企业'
if
i
.
zjtg
==
'1'
else
''
,
"unicorn"
:
'独角兽企业'
if
i
.
unicorn
==
'1'
else
''
,
"unicorn"
:
'独角兽企业'
if
i
.
unicorn
==
'1'
else
''
,
"dengl"
:
'瞪羚'
if
i
.
dengl
==
'1'
else
''
,
"dengl"
:
'瞪羚
企业
'
if
i
.
dengl
==
'1'
else
''
,
"isfive"
:
'中国500强'
if
i
.
isfive
==
'1'
else
''
,
"isfive"
:
'中国500强'
if
i
.
isfive
==
'1'
else
''
,
"scale"
:
'规模以上企业'
if
i
.
scale
==
'1'
else
''
,
"scale"
:
'规模以上企业'
if
i
.
scale
==
'1'
else
''
,
"serve"
:
'限额以上服务业'
if
i
.
serve
==
'1'
else
''
,
"serve"
:
'限额以上服务业'
if
i
.
serve
==
'1'
else
''
,
...
...
apps/view_index/view.py
View file @
42720040
...
@@ -828,7 +828,7 @@ def enterprise_detail():
...
@@ -828,7 +828,7 @@ def enterprise_detail():
"quoted_enterprise"
:
'上市企业'
if
enterprise
.
quoted_company
==
'1'
else
""
,
"quoted_enterprise"
:
'上市企业'
if
enterprise
.
quoted_company
==
'1'
else
""
,
"patent"
:
'专利企业'
if
enterprise
.
patent
==
'1'
else
""
,
"patent"
:
'专利企业'
if
enterprise
.
patent
==
'1'
else
""
,
"unicorn"
:
'独角兽企业'
if
enterprise
.
unicorn
==
'1'
else
""
,
"unicorn"
:
'独角兽企业'
if
enterprise
.
unicorn
==
'1'
else
""
,
"dengl"
:
'瞪羚'
if
enterprise
.
dengl
==
'1'
else
""
,
"dengl"
:
'瞪羚
企业
'
if
enterprise
.
dengl
==
'1'
else
""
,
"isfive"
:
'中国500强'
if
enterprise
.
isfive
==
'1'
else
""
,
"isfive"
:
'中国500强'
if
enterprise
.
isfive
==
'1'
else
""
,
"zjtg"
:
'专精特新企业'
if
enterprise
.
zjtg
==
'1'
else
""
,
"zjtg"
:
'专精特新企业'
if
enterprise
.
zjtg
==
'1'
else
""
,
"zjtg_gjjxjr"
:
'国家级专精特新小巨人企业'
if
enterprise
.
zjtg_gjjxjr
==
'1'
else
""
,
"zjtg_gjjxjr"
:
'国家级专精特新小巨人企业'
if
enterprise
.
zjtg_gjjxjr
==
'1'
else
""
,
...
...
apps/view_map/view.py
View file @
42720040
...
@@ -369,7 +369,7 @@ def search_enterprise():
...
@@ -369,7 +369,7 @@ def search_enterprise():
"山西民营100强"
if
enterprise_obj
.
sxmon
==
'1'
else
"山西民营100强"
if
enterprise_obj
.
sxmon
==
'1'
else
"山西专精特新企业"
if
enterprise_obj
.
zjtg
==
'1'
else
"山西专精特新企业"
if
enterprise_obj
.
zjtg
==
'1'
else
"独角兽企业"
if
enterprise_obj
.
unicorn
==
'1'
else
"独角兽企业"
if
enterprise_obj
.
unicorn
==
'1'
else
"瞪羚"
if
enterprise_obj
.
dengl
==
'1'
else
"瞪羚
企业
"
if
enterprise_obj
.
dengl
==
'1'
else
"中国500强"
if
enterprise_obj
.
isfive
==
'1'
else
"中国500强"
if
enterprise_obj
.
isfive
==
'1'
else
"规模以上企业"
if
enterprise_obj
.
scale
==
'1'
else
"规模以上企业"
if
enterprise_obj
.
scale
==
'1'
else
"限额以上服务业"
if
enterprise_obj
.
serve
==
'1'
else
''
]
"限额以上服务业"
if
enterprise_obj
.
serve
==
'1'
else
''
]
...
...
apps/view_radar/view.py
View file @
42720040
...
@@ -1067,7 +1067,7 @@ def search_enterprise():
...
@@ -1067,7 +1067,7 @@ def search_enterprise():
"山西民营100强"
if
enterprise_obj
.
sxmon
==
'1'
else
"山西民营100强"
if
enterprise_obj
.
sxmon
==
'1'
else
"山西专精特新企业"
if
enterprise_obj
.
zjtg
==
'1'
else
"山西专精特新企业"
if
enterprise_obj
.
zjtg
==
'1'
else
"独角兽企业"
if
enterprise_obj
.
unicorn
==
'1'
else
"独角兽企业"
if
enterprise_obj
.
unicorn
==
'1'
else
"瞪羚"
if
enterprise_obj
.
dengl
==
'1'
else
"瞪羚
企业
"
if
enterprise_obj
.
dengl
==
'1'
else
"中国500强"
if
enterprise_obj
.
isfive
==
'1'
else
"中国500强"
if
enterprise_obj
.
isfive
==
'1'
else
"规模以上企业"
if
enterprise_obj
.
scale
==
'1'
else
"规模以上企业"
if
enterprise_obj
.
scale
==
'1'
else
"限额以上服务业"
if
enterprise_obj
.
serve
==
'1'
else
''
]
"限额以上服务业"
if
enterprise_obj
.
serve
==
'1'
else
''
]
...
...
apps/view_user/view.py
View file @
42720040
...
@@ -874,7 +874,7 @@ def get_collect():
...
@@ -874,7 +874,7 @@ def get_collect():
"sxmon"
:
'山西民营100强'
if
i
.
sxmon
==
'1'
else
''
,
"sxmon"
:
'山西民营100强'
if
i
.
sxmon
==
'1'
else
''
,
"zjtg"
:
'山西专精特新企业'
if
i
.
zjtg
==
'1'
else
''
,
"zjtg"
:
'山西专精特新企业'
if
i
.
zjtg
==
'1'
else
''
,
"unicorn"
:
'独角兽企业'
if
i
.
unicorn
==
'1'
else
''
,
"unicorn"
:
'独角兽企业'
if
i
.
unicorn
==
'1'
else
''
,
"dengl"
:
'瞪羚'
if
i
.
dengl
==
'1'
else
''
,
"dengl"
:
'瞪羚
企业
'
if
i
.
dengl
==
'1'
else
''
,
"isfive"
:
'中国500强'
if
i
.
isfive
==
'1'
else
''
,
"isfive"
:
'中国500强'
if
i
.
isfive
==
'1'
else
''
,
"scale"
:
'规模以上企业'
if
i
.
scale
==
'1'
else
''
,
"scale"
:
'规模以上企业'
if
i
.
scale
==
'1'
else
''
,
"serve"
:
'限额以上服务业'
if
i
.
serve
==
'1'
else
''
,
"serve"
:
'限额以上服务业'
if
i
.
serve
==
'1'
else
''
,
...
@@ -894,7 +894,7 @@ def get_collect():
...
@@ -894,7 +894,7 @@ def get_collect():
"sxmon"
:
'山西民营100强'
if
i
.
sxmon
==
'1'
else
''
,
"sxmon"
:
'山西民营100强'
if
i
.
sxmon
==
'1'
else
''
,
"zjtg"
:
'山西专精特新企业'
if
i
.
zjtg
==
'1'
else
''
,
"zjtg"
:
'山西专精特新企业'
if
i
.
zjtg
==
'1'
else
''
,
"unicorn"
:
'独角兽企业'
if
i
.
unicorn
==
'1'
else
''
,
"unicorn"
:
'独角兽企业'
if
i
.
unicorn
==
'1'
else
''
,
"dengl"
:
'瞪羚'
if
i
.
dengl
==
'1'
else
''
,
"dengl"
:
'瞪羚
企业
'
if
i
.
dengl
==
'1'
else
''
,
"isfive"
:
'中国500强'
if
i
.
isfive
==
'1'
else
''
,
"isfive"
:
'中国500强'
if
i
.
isfive
==
'1'
else
''
,
"scale"
:
'规模以上企业'
if
i
.
scale
==
'1'
else
''
,
"scale"
:
'规模以上企业'
if
i
.
scale
==
'1'
else
''
,
"serve"
:
'限额以上服务业'
if
i
.
serve
==
'1'
else
''
,
"serve"
:
'限额以上服务业'
if
i
.
serve
==
'1'
else
''
,
...
@@ -930,7 +930,7 @@ def get_collect():
...
@@ -930,7 +930,7 @@ def get_collect():
"sxmon"
:
'山西民营100强'
if
i
.
sxmon
==
'1'
else
''
,
"sxmon"
:
'山西民营100强'
if
i
.
sxmon
==
'1'
else
''
,
"zjtg"
:
'山西专精特新企业'
if
i
.
zjtg
==
'1'
else
''
,
"zjtg"
:
'山西专精特新企业'
if
i
.
zjtg
==
'1'
else
''
,
"unicorn"
:
'独角兽企业'
if
i
.
unicorn
==
'1'
else
''
,
"unicorn"
:
'独角兽企业'
if
i
.
unicorn
==
'1'
else
''
,
"dengl"
:
'瞪羚'
if
i
.
dengl
==
'1'
else
''
,
"dengl"
:
'瞪羚
企业
'
if
i
.
dengl
==
'1'
else
''
,
"isfive"
:
'中国500强'
if
i
.
isfive
==
'1'
else
''
,
"isfive"
:
'中国500强'
if
i
.
isfive
==
'1'
else
''
,
"scale"
:
'规模以上企业'
if
i
.
scale
==
'1'
else
''
,
"scale"
:
'规模以上企业'
if
i
.
scale
==
'1'
else
''
,
"serve"
:
'限额以上服务业'
if
i
.
serve
==
'1'
else
''
,
"serve"
:
'限额以上服务业'
if
i
.
serve
==
'1'
else
''
,
...
@@ -951,7 +951,7 @@ def get_collect():
...
@@ -951,7 +951,7 @@ def get_collect():
"sxmon"
:
'山西民营100强'
if
i
.
sxmon
==
'1'
else
''
,
"sxmon"
:
'山西民营100强'
if
i
.
sxmon
==
'1'
else
''
,
"zjtg"
:
'山西专精特新企业'
if
i
.
zjtg
==
'1'
else
''
,
"zjtg"
:
'山西专精特新企业'
if
i
.
zjtg
==
'1'
else
''
,
"unicorn"
:
'独角兽企业'
if
i
.
unicorn
==
'1'
else
''
,
"unicorn"
:
'独角兽企业'
if
i
.
unicorn
==
'1'
else
''
,
"dengl"
:
'瞪羚'
if
i
.
dengl
==
'1'
else
''
,
"dengl"
:
'瞪羚
企业
'
if
i
.
dengl
==
'1'
else
''
,
"isfive"
:
'中国500强'
if
i
.
isfive
==
'1'
else
''
,
"isfive"
:
'中国500强'
if
i
.
isfive
==
'1'
else
''
,
"scale"
:
'规模以上企业'
if
i
.
scale
==
'1'
else
''
,
"scale"
:
'规模以上企业'
if
i
.
scale
==
'1'
else
''
,
"serve"
:
'限额以上服务业'
if
i
.
serve
==
'1'
else
''
,
"serve"
:
'限额以上服务业'
if
i
.
serve
==
'1'
else
''
,
...
...
apps/view_xiaocx/view.py
View file @
42720040
...
@@ -464,7 +464,7 @@ def company_detail():
...
@@ -464,7 +464,7 @@ def company_detail():
'国家级专精特新小巨人企业'
if
company_obj
.
zjtg_gjjxjr
==
'1'
else
''
,
'国家级专精特新小巨人企业'
if
company_obj
.
zjtg_gjjxjr
==
'1'
else
''
,
'省级专精特新小巨人企业'
if
company_obj
.
zjtg_sjxjr
==
'1'
else
''
,
'省级专精特新小巨人企业'
if
company_obj
.
zjtg_sjxjr
==
'1'
else
''
,
'独角兽企业'
if
company_obj
.
unicorn
==
'1'
else
''
,
'独角兽企业'
if
company_obj
.
unicorn
==
'1'
else
''
,
'瞪羚'
if
company_obj
.
dengl
==
'1'
else
''
,
'瞪羚
企业
'
if
company_obj
.
dengl
==
'1'
else
''
,
'中国500强'
if
company_obj
.
isfive
==
'1'
else
''
,
'中国500强'
if
company_obj
.
isfive
==
'1'
else
''
,
'山西100强'
if
company_obj
.
sxonhun
==
'1'
else
''
,
'山西100强'
if
company_obj
.
sxonhun
==
'1'
else
''
,
'规模以上企业'
if
company_obj
.
scale
==
'1'
else
''
,
'规模以上企业'
if
company_obj
.
scale
==
'1'
else
''
,
...
...
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