Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
search-model-data
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
田川
search-model-data
Commits
56059698
Commit
56059698
authored
May 25, 2021
by
王玉龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'FEATURE-SEARCH-790-addUserType' into 'master'
1.添加用户类型特征 See merge request tianchuan/search-model-data!1
parents
760b8652
98dd0a11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletions
+31
-1
insert_user_feature_ext.sql
src/main/scripts/user_feature/insert_user_feature_ext.sql
+31
-1
No files found.
src/main/scripts/user_feature/insert_user_feature_ext.sql
View file @
56059698
...
@@ -110,7 +110,37 @@ SELECT
...
@@ -110,7 +110,37 @@ SELECT
,
U
.
prodAndUserPurchSpecial
,
U
.
prodAndUserPurchSpecial
,
U
.
ispayeduser
,
U
.
ispayeduser
,
U
.
userfeatures
,
concat_ws
(
','
,
cast
(
round
(
nvl
(
U
.
30
DaysDetailPV
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
30
DaysDetailPVN
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
30
DaysDetailPVS
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
30
DaysDetailPVA
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
30
DaysDetailPVAB
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
30
DaysDetailPVB
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
30
DaysChannelPVPaiHangBang
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
30
DaysChannelPVRenQiBang
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
30
DaysChannelPVXinPinBang
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
30
DaysChannelPVJRZK
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
30
DaysChannelPVAoLai
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
30
DaysChannelPVXSCJ
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
30
DaysSearchCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
30
DaysSearchBrandCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
30
DaysSearchCategoryCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearCartProductCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearCartBrandCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearCartCategoryCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearCartPriceAmt
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearAddFavProductCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearAddFavBrandCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearAddFavCategoryCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearAddFavPriceAmt
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderProductCountAvg
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderPayCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderPayPriceAmt
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderPayProductCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderPayBrandCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderPayCategoryCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderTicketCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderTicketProductCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderTicketPriceAmt
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderTicketBrandCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderTicketCategoryCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderUsePointCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderUsePointPriceAmt
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderProductManCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderProductManPriceAmt
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderProductWomanCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderProductWomanPriceAmt
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderProductOtherCount
,
0
),
4
)
as
string
),
cast
(
round
(
nvl
(
U
.
1
YearOrderProductOtherPriceAmt
,
0
),
4
)
as
string
),
(
case
round
(
nvl
(
U
.
addCartIn7Days
,
0
),
0
)
when
0
then
'1,0'
when
1
then
'0,1'
else
'1,0'
end
),
(
case
round
(
nvl
(
U
.
deviceType
,
0
),
0
)
when
0
then
'1,0,0'
when
1
then
'0,1,0'
when
2
then
'0,0,1'
else
'1,0,0'
end
),
(
case
round
(
nvl
(
U
.
purchasedBrand100
,
0
),
0
)
when
0
then
'1,0'
when
1
then
'0,1'
else
'1,0'
end
),
(
case
round
(
nvl
(
U
.
purchasedItems
,
0
),
0
)
when
0
then
'1,0'
when
1
then
'0,1'
else
'1,0'
end
),
(
case
round
(
nvl
(
U
.
activeIn7Days
,
0
),
0
)
when
0
then
'1,0'
when
1
then
'0,1'
else
'1,0'
end
),
(
case
round
(
nvl
(
U
.
activeInWeekends
,
0
),
0
)
when
0
then
'1,0'
when
1
then
'0,1'
else
'1,0'
end
),
(
case
round
(
nvl
(
U
.
gender
,
0
),
0
)
when
0
then
'1,0,0'
when
1
then
'0,1,0'
when
2
then
'0,0,1'
else
'1,0,0'
end
)
)
userfeatures
,
U
.
userlabels
,
U
.
userlabels
,
U
.
is_new_user
,
U
.
is_new_user
...
...
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