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
9dc2012b
Commit
9dc2012b
authored
Dec 05, 2018
by
蘑菇🍄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企業id
parent
a8ffd73b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
数据组装pro.sql
jnby-pomme/数据组装pro.sql
+3
-3
No files found.
jnby-pomme/数据组装pro.sql
View file @
9dc2012b
...
@@ -369,7 +369,7 @@ INSERT INTO `tab_gic_mall_collection_copy`
...
@@ -369,7 +369,7 @@ INSERT INTO `tab_gic_mall_collection_copy`
,
co
.
create_time
,
co
.
create_time
as
update_time
,
members_view
.
clique_id
,
co
.
create_time
,
co
.
create_time
as
update_time
,
members_view
.
clique_id
,
members_view
.
clique_member_id
,
1
as
from_erp
,
members_view
.
clique_member_id
,
1
as
from_erp
from
collect_import
co
from
collect_import
co
left
join
tab_gic_mall_pro
pro
on
pro
.
pro_code
=
co
.
mall_pro_code
left
join
tab_gic_mall_pro
pro
on
pro
.
pro_code
=
co
.
mall_pro_code
and
pro
.
enterprise_id
=
'ff8080816170e8990161f6736b4c6033'
left
join
`gic3.0`
.
tab_gic_member_pommedeterre
members_view
on
members_view
.
card_num
=
co
.
card_no
left
join
`gic3.0`
.
tab_gic_member_pommedeterre
members_view
on
members_view
.
card_num
=
co
.
card_no
group
by
co
.
card_no
,
co
.
mall_pro_code
group
by
co
.
card_no
,
co
.
mall_pro_code
;
;
...
@@ -393,7 +393,7 @@ INSERT INTO `tab_gic_mall_shopping_cart_copy` (
...
@@ -393,7 +393,7 @@ INSERT INTO `tab_gic_mall_shopping_cart_copy` (
from
mall_shoopping_cart
cart
from
mall_shoopping_cart
cart
left
join
tab_gic_mall_pro_sku
sku
on
sku
.
mall_pro_sku_code
=
cart
.
mall_sku_code
left
join
tab_gic_mall_pro_sku
sku
on
sku
.
mall_pro_sku_code
=
cart
.
mall_sku_code
left
join
tab_gic_mall_pro
pro
on
pro
.
pro_code
=
cart
.
mall_pro_code
left
join
tab_gic_mall_pro
pro
on
pro
.
pro_code
=
cart
.
mall_pro_code
and
pro
.
enterprise_id
=
'ff8080816170e8990161f6736b4c6033'
left
join
`gic3.0`
.
tab_gic_member_pommedeterre
members_view
on
members_view
.
card_num
=
cart
.
cardno
left
join
`gic3.0`
.
tab_gic_member_pommedeterre
members_view
on
members_view
.
card_num
=
cart
.
cardno
group
by
cart
.
cardno
,
cart
.
mall_pro_code
,
cart
.
mall_sku_code
group
by
cart
.
cardno
,
cart
.
mall_pro_code
,
cart
.
mall_sku_code
;
;
...
...
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