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
1e4f0f5c
Commit
1e4f0f5c
authored
May 18, 2020
by
黄静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hj
parent
add28d53
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
15 deletions
+31
-15
entprofile/.idea/workspace.xml
+10
-9
entprofile/service/__pycache__/user_behavior.cpython-37.pyc
+0
-0
entprofile/service/user_behavior.py
+21
-6
No files found.
entprofile/.idea/workspace.xml
View file @
1e4f0f5c
...
...
@@ -175,6 +175,7 @@
<workItem
from=
"1587437264430"
duration=
"2651000"
/>
<workItem
from=
"1588754339665"
duration=
"838000"
/>
<workItem
from=
"1589429479087"
duration=
"1372000"
/>
<workItem
from=
"1589768009451"
duration=
"397000"
/>
</task>
<servers
/>
</component>
...
...
@@ -186,41 +187,41 @@
<screen
x=
"0"
y=
"23"
width=
"1680"
height=
"972"
/>
</state>
<state
width=
"562"
height=
"466"
key=
"DebuggerActiveHint/0.23.1680.972@0.23.1680.972"
timestamp=
"1587029725739"
/>
<state
width=
"914"
height=
"28
2"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1588755181972
"
>
<state
width=
"914"
height=
"28
4"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1589768413489
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
<state
width=
"1638"
height=
"229"
key=
"GridCell.Tab.0.bottom/0.0.1680.993@0.0.1680.993"
timestamp=
"1587364538708"
/>
<state
width=
"914"
height=
"28
2"
key=
"GridCell.Tab.0.bottom/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1588755181972
"
/>
<state
width=
"914"
height=
"28
4"
key=
"GridCell.Tab.0.bottom/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1589768413489
"
/>
<state
width=
"1345"
height=
"260"
key=
"GridCell.Tab.0.bottom/0.23.1680.967@0.23.1680.967"
timestamp=
"1587114865120"
/>
<state
width=
"1638"
height=
"229"
key=
"GridCell.Tab.0.bottom/0.23.1680.970@0.23.1680.970"
timestamp=
"1587456914197"
/>
<state
width=
"1345"
height=
"321"
key=
"GridCell.Tab.0.bottom/0.23.1680.971@0.23.1680.971"
timestamp=
"1587028755730"
/>
<state
width=
"1345"
height=
"321"
key=
"GridCell.Tab.0.bottom/0.23.1680.972@0.23.1680.972"
timestamp=
"1587029936244"
/>
<state
width=
"1345"
height=
"321"
key=
"GridCell.Tab.0.bottom/0.23.1680.975@0.23.1680.975"
timestamp=
"1587040846953"
/>
<state
width=
"914"
height=
"28
2"
key=
"GridCell.Tab.0.center"
timestamp=
"1588755181972
"
>
<state
width=
"914"
height=
"28
4"
key=
"GridCell.Tab.0.center"
timestamp=
"1589768413489
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
<state
width=
"1638"
height=
"229"
key=
"GridCell.Tab.0.center/0.0.1680.993@0.0.1680.993"
timestamp=
"1587364538707"
/>
<state
width=
"914"
height=
"28
2"
key=
"GridCell.Tab.0.center/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1588755181972
"
/>
<state
width=
"914"
height=
"28
4"
key=
"GridCell.Tab.0.center/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1589768413489
"
/>
<state
width=
"1345"
height=
"260"
key=
"GridCell.Tab.0.center/0.23.1680.967@0.23.1680.967"
timestamp=
"1587114865119"
/>
<state
width=
"1638"
height=
"229"
key=
"GridCell.Tab.0.center/0.23.1680.970@0.23.1680.970"
timestamp=
"1587456914196"
/>
<state
width=
"1345"
height=
"321"
key=
"GridCell.Tab.0.center/0.23.1680.971@0.23.1680.971"
timestamp=
"1587028755729"
/>
<state
width=
"1345"
height=
"321"
key=
"GridCell.Tab.0.center/0.23.1680.972@0.23.1680.972"
timestamp=
"1587029936243"
/>
<state
width=
"1345"
height=
"321"
key=
"GridCell.Tab.0.center/0.23.1680.975@0.23.1680.975"
timestamp=
"1587040846953"
/>
<state
width=
"914"
height=
"28
2"
key=
"GridCell.Tab.0.left"
timestamp=
"1588755181972
"
>
<state
width=
"914"
height=
"28
4"
key=
"GridCell.Tab.0.left"
timestamp=
"1589768413488
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
<state
width=
"1638"
height=
"229"
key=
"GridCell.Tab.0.left/0.0.1680.993@0.0.1680.993"
timestamp=
"1587364538706"
/>
<state
width=
"914"
height=
"28
2"
key=
"GridCell.Tab.0.left/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1588755181972
"
/>
<state
width=
"914"
height=
"28
4"
key=
"GridCell.Tab.0.left/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1589768413488
"
/>
<state
width=
"1345"
height=
"260"
key=
"GridCell.Tab.0.left/0.23.1680.967@0.23.1680.967"
timestamp=
"1587114865119"
/>
<state
width=
"1638"
height=
"229"
key=
"GridCell.Tab.0.left/0.23.1680.970@0.23.1680.970"
timestamp=
"1587456914195"
/>
<state
width=
"1345"
height=
"321"
key=
"GridCell.Tab.0.left/0.23.1680.971@0.23.1680.971"
timestamp=
"1587028755729"
/>
<state
width=
"1345"
height=
"321"
key=
"GridCell.Tab.0.left/0.23.1680.972@0.23.1680.972"
timestamp=
"1587029936243"
/>
<state
width=
"1345"
height=
"321"
key=
"GridCell.Tab.0.left/0.23.1680.975@0.23.1680.975"
timestamp=
"1587040846952"
/>
<state
width=
"914"
height=
"28
2"
key=
"GridCell.Tab.0.right"
timestamp=
"1588755181972
"
>
<state
width=
"914"
height=
"28
4"
key=
"GridCell.Tab.0.right"
timestamp=
"1589768413489
"
>
<screen
x=
"0"
y=
"0"
width=
"1920"
height=
"1040"
/>
</state>
<state
width=
"1638"
height=
"229"
key=
"GridCell.Tab.0.right/0.0.1680.993@0.0.1680.993"
timestamp=
"1587364538707"
/>
<state
width=
"914"
height=
"28
2"
key=
"GridCell.Tab.0.right/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1588755181972
"
/>
<state
width=
"914"
height=
"28
4"
key=
"GridCell.Tab.0.right/0.0.1920.1040@0.0.1920.1040"
timestamp=
"1589768413489
"
/>
<state
width=
"1345"
height=
"260"
key=
"GridCell.Tab.0.right/0.23.1680.967@0.23.1680.967"
timestamp=
"1587114865120"
/>
<state
width=
"1638"
height=
"229"
key=
"GridCell.Tab.0.right/0.23.1680.970@0.23.1680.970"
timestamp=
"1587456914196"
/>
<state
width=
"1345"
height=
"321"
key=
"GridCell.Tab.0.right/0.23.1680.971@0.23.1680.971"
timestamp=
"1587028755730"
/>
...
...
@@ -300,7 +301,7 @@
</breakpoint-manager>
</component>
<component
name=
"com.intellij.coverage.CoverageDataManagerImpl"
>
<SUITE
FILE_PATH=
"coverage/entprofile$main.coverage"
NAME=
"main Coverage Results"
MODIFIED=
"158
8755009484
"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"true"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$"
/>
<SUITE
FILE_PATH=
"coverage/entprofile$main.coverage"
NAME=
"main Coverage Results"
MODIFIED=
"158
9768108423
"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"true"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$"
/>
<SUITE
FILE_PATH=
"coverage/recommendation$mod_db.coverage"
NAME=
"mod_db Coverage Results"
MODIFIED=
"1587358120537"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"true"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$/db"
/>
<SUITE
FILE_PATH=
"coverage/recommendation$company_es.coverage"
NAME=
"company_es Coverage Results"
MODIFIED=
"1587358210574"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"true"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$/dao"
/>
<SUITE
FILE_PATH=
"coverage/recommendation$company_basic.coverage"
NAME=
"company_basic Coverage Results"
MODIFIED=
"1587363152092"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"coverage.py"
COVERAGE_BY_TEST_ENABLED=
"true"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$/service"
/>
...
...
entprofile/service/__pycache__/user_behavior.cpython-37.pyc
View file @
1e4f0f5c
No preview for this file type
entprofile/service/user_behavior.py
View file @
1e4f0f5c
...
...
@@ -198,8 +198,8 @@ class Recom:
product_result
=
product
.
select
(
company_name
)
for
data
in
product_result
:
print
(
data
,
"======推荐产品"
)
if
data
[
'relational_product'
]:
relational
=
eval
(
data
[
'relational_product'
])
if
data
[
'relational_product
_old
'
]:
relational
=
eval
(
data
[
'relational_product
_old
'
])
for
item
in
relational
:
print
(
item
,
"====业务产品item"
)
item
[
'productName'
]
=
item
[
'commodityName'
]
...
...
@@ -208,20 +208,27 @@ class Recom:
item
[
'typeName'
]
=
"关联推荐"
product_list
.
append
(
item
)
print
(
product_list
,
"===========业务产品list"
)
if
data
[
'similar_product'
]:
similar
=
eval
(
data
[
'similar_product'
])
if
data
[
'similar_product
_old
'
]:
similar
=
eval
(
data
[
'similar_product
_old
'
])
for
similaritem
in
similar
:
similaritem
[
'typeCate'
]
=
similaritem
[
'typeName'
]
similaritem
[
'productName'
]
=
similaritem
[
'commodityName'
]
similaritem
[
'typeName'
]
=
"同类推荐"
product_list
.
append
(
similaritem
)
if
data
[
'cross_product'
]:
cross
=
eval
(
data
[
'cross_product'
])
if
data
[
'cross_product
_old
'
]:
cross
=
eval
(
data
[
'cross_product
_old
'
])
for
crossitem
in
cross
:
crossitem
[
'typeCate'
]
=
crossitem
[
'typeName'
]
crossitem
[
'productName'
]
=
crossitem
[
'commodityName'
]
crossitem
[
'typeName'
]
=
"交叉推荐"
product_list
.
append
(
crossitem
)
if
data
[
'survey_product_old'
]:
survey
=
eval
(
data
[
'survey_product_old'
])
for
surveyitem
in
survey
:
surveyitem
[
'typeCate'
]
=
surveyitem
[
'typeName'
]
surveyitem
[
'productName'
]
=
surveyitem
[
'commodityName'
]
surveyitem
[
'typeName'
]
=
"监测推荐"
product_list
.
append
(
surveyitem
)
print
(
product_list
,
"===========业务产品list1"
)
return
product_list
...
...
@@ -259,6 +266,14 @@ class Recom:
crossitem
[
'productName'
]
=
crossitem
[
'commodityName'
]
crossitem
[
'typeName'
]
=
"交叉推荐"
product_list
.
append
(
crossitem
)
if
data
[
'survey_product'
]:
survey
=
eval
(
data
[
'survey_product'
])
for
surveyitem
in
survey
:
surveyitem
[
'typeCate'
]
=
surveyitem
[
'typeName'
]
surveyitem
[
'productName'
]
=
surveyitem
[
'commodityName'
]
surveyitem
[
'typeName'
]
=
"监测推荐"
product_list
.
append
(
surveyitem
)
print
(
product_list
,
"===========业务产品list1"
)
return
product_list
...
...
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