Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
蒋勇
zhichan
Commits
2fbddba4
Commit
2fbddba4
authored
Jun 15, 2020
by
黄静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hj
parent
fb8f5ea4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
12 deletions
+21
-12
entprofile/service/__pycache__/label_connect.cpython-37.pyc
+0
-0
entprofile/service/__pycache__/select_es_result.cpython-37.pyc
+0
-0
entprofile/service/__pycache__/user_behavior.cpython-37.pyc
+0
-0
entprofile/service/label_connect.py
+0
-1
entprofile/service/select_es_result.py
+20
-10
entprofile/service/user_behavior.py
+1
-1
No files found.
entprofile/service/__pycache__/label_connect.cpython-37.pyc
View file @
2fbddba4
No preview for this file type
entprofile/service/__pycache__/select_es_result.cpython-37.pyc
View file @
2fbddba4
No preview for this file type
entprofile/service/__pycache__/user_behavior.cpython-37.pyc
View file @
2fbddba4
No preview for this file type
entprofile/service/label_connect.py
View file @
2fbddba4
...
...
@@ -86,7 +86,6 @@ def select_info(label_list):
data_list1
.
append
(
data_list1_dict
)
print
(
len
(
data_list1
))
try
:
return
json
.
dumps
({
"status"
:
200
,
"msg"
:
"成功"
,
"type"
:
"select"
,
"data"
:
data_list1
},
ensure_ascii
=
False
)
except
:
...
...
entprofile/service/select_es_result.py
View file @
2fbddba4
...
...
@@ -278,7 +278,10 @@ def hx_company_dict(server):
try
:
base_result
=
companybase
.
companyinfo
(
company_name
)
logo_url
=
hx
.
select_url
(
company_name
)
base_result
[
'logo'
]
=
logo_url
if
base_result
:
base_result
[
'logo'
]
=
logo_url
else
:
base_result
=
"暂无符合条件的商机,请您修改条件进行检索!"
return
{
"status"
:
200
,
"msg"
:
"成功"
,
"data"
:
base_result
}
except
:
return
{
"status"
:
404
,
"msg"
:
"成功"
,
"data"
:
"暂无符合条件的商机,请您修改条件进行检索!"
}
...
...
@@ -309,19 +312,26 @@ def hx_company_list(server):
for
company_name
in
es_company_info
[
'company_hx_list'
]:
base_result
=
companybase
.
companyinfo
(
company_name
)
logo_url
=
hx
.
select_url
(
company_name
)
base_result
[
'logo'
]
=
logo_url
base_result_list
.
append
(
base_result
)
total
=
es_company_info
[
'total'
]
print
(
"len_result"
,
len
(
base_result_list
))
if
base_result
:
base_result
[
'logo'
]
=
logo_url
base_result_list
.
append
(
base_result
)
total
=
es_company_info
[
'total'
]
print
(
"len_result"
,
len
(
base_result_list
))
else
:
base_result_list
=
"暂无该检索信息,请您修改条件进行检索!"
else
:
es_company_info
=
hx
.
hxsearch
(
select_filter
,
pagesize
,
currentpage
)
for
company_name
in
es_company_info
[
'company_hx_list'
]:
base_result
=
companybase
.
companyinfo
(
company_name
)
logo_url
=
hx
.
select_url
(
company_name
)
base_result
[
'logo'
]
=
logo_url
base_result_list
.
append
(
base_result
)
total
=
es_company_info
[
'total'
]
print
(
"len_result"
,
len
(
base_result_list
))
if
base_result
:
logo_url
=
hx
.
select_url
(
company_name
)
base_result
[
'logo'
]
=
logo_url
base_result_list
.
append
(
base_result
)
total
=
es_company_info
[
'total'
]
print
(
"len_result"
,
len
(
base_result_list
))
else
:
base_result_list
=
"暂无该检索信息,请您修改条件进行检索!"
except
:
base_result_list
=
"暂无该检索信息,请您修改条件进行检索!"
return
{
"status"
:
200
,
"msg"
:
"成功"
,
"data"
:
base_result_list
,
"total"
:
total
}
entprofile/service/user_behavior.py
View file @
2fbddba4
...
...
@@ -24,7 +24,7 @@ class Recom:
else
:
behavior_json
[
'goods_name'
]
=
item
[
'product_name'
]
behavior_json
[
'purchase_date'
]
=
str
(
item
[
'order_add_time'
])
behavior_json
[
'contract_amount'
]
=
i
tem
[
'order_pay'
]
behavior_json
[
'contract_amount'
]
=
i
nt
(
item
[
'order_pay'
]
/
100
)
behavior_json
[
'source'
]
=
item
[
'order_channel'
]
behavior_json
[
'company_name'
]
=
company_name
item
[
'status'
]
=
"已完成"
...
...
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