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
d6083807
Commit
d6083807
authored
Feb 23, 2023
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20230223
parent
57fdebf9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
apps/view_atlas/view.py
+1
-0
apps/view_radar/view.py
+8
-4
No files found.
apps/view_atlas/view.py
View file @
d6083807
...
@@ -892,6 +892,7 @@ def get_zaiti_detail_data():
...
@@ -892,6 +892,7 @@ def get_zaiti_detail_data():
"month_wage_rates"
:
labor_obj
.
month_wage_rates
,
"month_wage_rates"
:
labor_obj
.
month_wage_rates
,
"hour_wage_rates"
:
labor_obj
.
hour_wage_rates
"hour_wage_rates"
:
labor_obj
.
hour_wage_rates
}
}
url
=
''
if
district
==
'泽州县'
:
if
district
==
'泽州县'
:
url
=
'https://zysf-store.oss-cn-beijing.aliyuncs.com/
%
E6
%99%8
B
%
E5
%9
F
%8
E
%
E6
%8
B
%9
B
%
E5
%95%86%
E5
%9
B
%
BE
%
E8
%
B0
%
B1
%
E5
%
B9
%
B3
%
E5
%8
F
%
B0/
%
E4
%
BA
%
A7
%
E4
%
B8
%9
A
%
E8
%
BD
%
BD
%
E4
%
BD
%93
-
%
E6
%8
A
%95%
E8
%
B5
%84%
E6
%88%90%
E6
%9
C
%
AC
%
E9
%85%8
D
%
E5
%9
B
%
BE/
%
E5
%
B7
%
B4
%
E5
%85%
AC
%
E9
%95%872022%
E5
%
B9
%
B4
%
E5
%9
F
%
BA
%
E5
%87%86%
E5
%9
C
%
B0
%
E4
%
BB
%
B7
%
E8
%
A1
%
A8.png'
url
=
'https://zysf-store.oss-cn-beijing.aliyuncs.com/
%
E6
%99%8
B
%
E5
%9
F
%8
E
%
E6
%8
B
%9
B
%
E5
%95%86%
E5
%9
B
%
BE
%
E8
%
B0
%
B1
%
E5
%
B9
%
B3
%
E5
%8
F
%
B0/
%
E4
%
BA
%
A7
%
E4
%
B8
%9
A
%
E8
%
BD
%
BD
%
E4
%
BD
%93
-
%
E6
%8
A
%95%
E8
%
B5
%84%
E6
%88%90%
E6
%9
C
%
AC
%
E9
%85%8
D
%
E5
%9
B
%
BE/
%
E5
%
B7
%
B4
%
E5
%85%
AC
%
E9
%95%872022%
E5
%
B9
%
B4
%
E5
%9
F
%
BA
%
E5
%87%86%
E5
%9
C
%
B0
%
E4
%
BB
%
B7
%
E8
%
A1
%
A8.png'
elif
district
==
'高平市'
:
elif
district
==
'高平市'
:
...
...
apps/view_radar/view.py
View file @
d6083807
...
@@ -426,11 +426,11 @@ def recommond():
...
@@ -426,11 +426,11 @@ def recommond():
name
=
req_dict
.
get
(
"name"
)
# 产品名
name
=
req_dict
.
get
(
"name"
)
# 产品名
page
=
req_dict
.
get
(
"page"
)
page
=
req_dict
.
get
(
"page"
)
perpage
=
req_dict
.
get
(
"perpage"
)
perpage
=
req_dict
.
get
(
"perpage"
)
# select = req_dict.get("select") # 企业地址选择
# 校验参数完整性
name_query
=
"GetLinkEnterprise"
+
name
# if not all([name]):
if
redis_store
.
get
(
name_query
)
is
not
None
:
# return jsonify(code=RET.PARAMERR, msg="参数不完整或者无数据")
data
=
json
.
loads
(
redis_store
.
get
(
name_query
))
return
jsonify
(
code
=
RET
.
OK
,
msg
=
"获取成功"
,
data
=
data
)
try
:
try
:
if
not
name
:
if
not
name
:
return
jsonify
(
code
=
RET
.
OK
,
msg
=
"查无数据!"
)
return
jsonify
(
code
=
RET
.
OK
,
msg
=
"查无数据!"
)
...
@@ -474,6 +474,10 @@ def recommond():
...
@@ -474,6 +474,10 @@ def recommond():
"telephone"
:
com
.
telephone
"telephone"
:
com
.
telephone
})
})
data
=
{
"ent_data"
:
ent_data
,
"size"
:
size
}
data
=
{
"ent_data"
:
ent_data
,
"size"
:
size
}
# redis缓存
redis_store
.
setex
(
name_query
,
30
*
24
*
3600
,
json
.
dumps
(
data
))
return
jsonify
(
code
=
RET
.
OK
,
msg
=
"查询成功"
,
data
=
data
)
return
jsonify
(
code
=
RET
.
OK
,
msg
=
"查询成功"
,
data
=
data
)
except
Exception
as
e
:
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
current_app
.
logger
.
error
(
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