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
593f4369
Commit
593f4369
authored
Apr 28, 2020
by
huangjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hj
parent
c950730f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
entprofile/dao/tj_purchase_original_dao.py
+2
-2
entprofile/service/user_behavior.py
+2
-2
No files found.
entprofile/dao/tj_purchase_original_dao.py
View file @
593f4369
...
...
@@ -12,4 +12,4 @@ class OriginalDao:
def
select
(
self
,
company_name
):
return
self
.
dataBase
.
fetch_all
(
"select * from `tj_purchase_original` where matching_related_companies = '
%
s' order by group_date desc "
%
company_name
)
\ No newline at end of file
return
self
.
dataBase
.
fetch_all
(
"select * from `tj_history_order` where account_company_name = '
%
s' order by order_add_time desc "
%
company_name
)
\ No newline at end of file
entprofile/service/user_behavior.py
View file @
593f4369
...
...
@@ -20,8 +20,8 @@ class Recom:
behavior_json
=
{}
behavior_json
[
'num'
]
=
num
behavior_json
[
'goods_name'
]
=
item
[
'product_name'
]
behavior_json
[
'purchase_date'
]
=
item
[
'
group_dat
e'
]
behavior_json
[
'contract_amount'
]
=
item
[
'
contract_amount
'
]
behavior_json
[
'purchase_date'
]
=
item
[
'
order_add_tim
e'
]
behavior_json
[
'contract_amount'
]
=
item
[
'
order_pay
'
]
behavior_json
[
'source'
]
=
item
[
'source'
]
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