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
f81759dc
Commit
f81759dc
authored
Jul 17, 2020
by
黄静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hj
parent
1ca24b13
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
3 deletions
+9
-3
entprofile/service/__pycache__/company_30s.cpython-37.pyc
+0
-0
entprofile/service/__pycache__/consultation_record.cpython-37.pyc
+0
-0
entprofile/service/__pycache__/user_behavior.cpython-37.pyc
+0
-0
entprofile/service/company_30s.py
+5
-0
entprofile/service/user_behavior.py
+4
-3
No files found.
entprofile/service/__pycache__/company_30s.cpython-37.pyc
View file @
f81759dc
No preview for this file type
entprofile/service/__pycache__/consultation_record.cpython-37.pyc
View file @
f81759dc
No preview for this file type
entprofile/service/__pycache__/user_behavior.cpython-37.pyc
View file @
f81759dc
No preview for this file type
entprofile/service/company_30s.py
View file @
f81759dc
...
...
@@ -80,10 +80,15 @@ def final_hx (company_industry,hx_info_dict):
data
.
append
(
industryData_dict
)
productData
=
hx_info_dict
[
'product'
]
.
replace
(
'['
,
''
)
.
replace
(
']'
,
''
)
.
replace
(
"'"
,
''
)
.
replace
(
" "
,
''
)
.
split
(
','
)
print
(
'productData'
,
productData
)
print
(
type
(
productData
))
if
productData
and
productData
!=
[
''
]:
if
len
(
productData
)
>
2
:
lable_data
=
productData
[
0
:
2
]
else
:
lable_data
=
productData
else
:
lable_data
=
[]
productData_dict
[
'label_data'
]
=
lable_data
productData_dict
[
'label_type'
]
=
'产品标签'
data
.
append
(
productData_dict
)
...
...
entprofile/service/user_behavior.py
View file @
f81759dc
...
...
@@ -318,7 +318,6 @@ class Recom:
return
product_list
# 商机推荐产品
def
business_product
(
self
,
business_id
,
product_select
):
print
(
"0000"
)
provide
=
ProvideDao
()
...
...
@@ -370,7 +369,8 @@ class Recom:
if
data
[
'relational_product'
]:
if
data
[
'relational_reason'
]:
print
(
"data['relational_reason']"
,
data
[
'relational_reason'
])
relational_reason
=
json
.
loads
(
data
[
'relational_reason'
]
.
replace
(
' '
,
''
))
# relational_reason = json.loads(data['relational_reason'].replace(' ',''))
relational_reason
=
json
.
loads
(
data
[
'relational_reason'
])
relational
=
eval
(
data
[
'relational_product'
])
for
relationalitem
in
relational
:
relationalitem
[
'typeCate'
]
=
relationalitem
[
'typeName'
]
...
...
@@ -383,7 +383,8 @@ class Recom:
if
data
[
'seas_product'
]:
if
data
[
'seas_reason'
]:
print
(
"data['seas_reason']"
,
data
[
'seas_reason'
])
seas_reason
=
json
.
loads
(
data
[
'seas_reason'
]
.
replace
(
' '
,
''
))
# seas_reason = json.loads(data['seas_reason'].replace(' ',''))
seas_reason
=
json
.
loads
(
data
[
'seas_reason'
])
seas
=
eval
(
data
[
'seas_product'
])
for
seasitem
in
seas
:
print
(
'seasitem'
,
seasitem
)
...
...
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