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
4c01bb31
Commit
4c01bb31
authored
Jun 15, 2020
by
黄静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hj
parent
2fbddba4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
3 deletions
+2
-3
entprofile/service/__pycache__/talking.cpython-37.pyc
+0
-0
entprofile/service/__pycache__/user_behavior.cpython-37.pyc
+0
-0
entprofile/service/talking.py
+1
-2
entprofile/service/user_behavior.py
+1
-1
No files found.
entprofile/service/__pycache__/talking.cpython-37.pyc
View file @
4c01bb31
No preview for this file type
entprofile/service/__pycache__/user_behavior.cpython-37.pyc
View file @
4c01bb31
No preview for this file type
entprofile/service/talking.py
View file @
4c01bb31
...
...
@@ -19,8 +19,7 @@ def getName(recommendId):
def
getSource
(
name
):
connection
=
pymysql
.
connect
(
host
=
'47.95.76.74'
,
port
=
3306
,
user
=
'root'
,
passwd
=
'Gongsibao2018'
,
db
=
'ent_data'
)
cur
=
connection
.
cursor
()
sql
=
'select preference_label from tj_label_depth where company_name = "
%
s"'
%
name
sql
=
'select preference_label from tj_label_depth_all where company_name = "
%
s"'
%
name
print
(
name
)
cur
.
execute
(
sql
)
s
=
cur
.
fetchall
()
...
...
entprofile/service/user_behavior.py
View file @
4c01bb31
...
...
@@ -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'
]
=
int
(
i
tem
[
'order_pay'
]
/
100
)
behavior_json
[
'contract_amount'
]
=
int
(
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