Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
script
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
姚闰伍
script
Commits
43d0ba3f
Commit
43d0ba3f
authored
Feb 21, 2019
by
蘑菇🍄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pro
parent
98f2bba8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
数据组装pro.sql
jnby-home/数据组装pro.sql
+6
-6
No files found.
jnby-home/数据组装pro.sql
View file @
43d0ba3f
...
...
@@ -411,15 +411,15 @@ replace INTO `tab_gic_mall_shopping_cart_copy` (
,
`mall_pro_summary_price`
,
`clique_id`
,
`clique_member_id`
,
`from_erp`
)
SELECT
replace
(
uuid
(),
'-'
,
''
)
as
shopping_cart_id
,
members_view
.
member_id
,
members_view
.
enterprise_id
,
pro
.
brand_id
,
pro
.
mall_pro_id
,
cart
.
mall_pro_name
,
sku
.
mall_pro_sku_id
,
IFNULL
(
sku
.
mall_prop_values
,
'[{}]'
)
as
mall_pro_sku_attr
,
cart
.
mall_pro_price
,
pro
.
mall_pro
_image_url
,
cart
.
mall_pro_number
,
sku
.
mall_pro_sku_price
,
cart
.
mall_pro_summary_price
as
mall_pro_payable_price
,
IF
(
isnull
(
pro
.
mall_pro_id
),
0
,
1
)
as
status
,
cart
.
erp_create_time
,
cart
.
erp_create_time
as
update_time
replace
(
uuid
(),
'-'
,
''
)
as
shopping_cart_id
,
members_view
.
member_id
,
members_view
.
enterprise_id
,
null
as
brand_id
,
sku
.
mall_pro_id
,
cart
.
mall_pro_name
,
sku
.
mall_pro_sku_id
,
IFNULL
(
sku
.
mall_prop_values
,
'[{}]'
)
as
mall_pro_sku_attr
,
cart
.
mall_pro_price
,
sku
.
mall_pro_propvalue
_image_url
,
cart
.
mall_pro_number
,
sku
.
mall_pro_sku_price
,
cart
.
mall_pro_summary_price
as
mall_pro_payable_price
,
IF
(
isnull
(
sku
.
mall_pro_id
),
0
,
1
)
as
status
,
cart
.
erp_create_time
,
cart
.
erp_create_time
as
update_time
,
cart
.
mall_pro_summary_price
,
members_view
.
clique_id
,
members_view
.
clique_member_id
,
1
as
from_erp
from
`test`
.
mall_shoopping_cart
cart
left
join
`gic_mall`
.
tab_gic_mall_pro
pro
on
pro
.
pro_code
=
cart
.
mall_pro_code
and
pro
.
enterprise_id
=
'ff8080816170e8990161f65038745e4e'
--
left join `gic_mall`.tab_gic_mall_pro pro on pro.pro_code = cart.mall_pro_code and pro.enterprise_id = 'ff8080816170e8990161f65038745e4e'
left
join
`gic_mall`
.
tab_gic_mall_pro_sku
sku
on
sku
.
mall_pro_sku_code
=
cart
.
mall_sku_code
and
sku
.
enterprise_id
=
'ff8080816170e8990161f65038745e4e'
left
join
`gic3.0`
.
tab_gic_member_HOME
members_view
on
members_view
.
card_num
=
cart
.
cardno
-- WHERE cart.cardno in ('WX60206813','WX60332175','WX01805426')
...
...
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