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
57aa4d0c
Commit
57aa4d0c
authored
Jan 23, 2019
by
蘑菇🍄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
`order_import_JNBY`
parent
17cd0baf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
数据组装pro.sql
jnby-JNBY/数据组装pro.sql
+9
-9
No files found.
jnby-JNBY/数据组装pro.sql
View file @
57aa4d0c
...
...
@@ -337,17 +337,17 @@ INSERT INTO `tab_gic_mall_evaluate_copy`
)
SELECT
replace
(
uuid
(),
'-'
,
''
)
as
evaluate_id
,
personal
.
enterprise_id
,
personal
.
member_id
,
0
as
evaluate_type
,
itemc
.
order_id
as
mall_order_id
,
itemc
.
order_item_id
as
mall_order_item_id
,
itemc
.
mall_pro_id
,
e
.
evaluate_content
REPLACE
(
UUID
(),
'-'
,
''
)
AS
evaluate_id
,
members_view
.
enterprise_id
,
members_view
.
member_id
,
0
AS
evaluate_type
,
itemc
.
order_id
AS
mall_order_id
,
itemc
.
order_item_id
AS
mall_order_item_id
,
itemc
.
mall_pro_id
,
e
.
evaluate_content
,
e
.
evaluate_score
,
e
.
show_status
,
e
.
status
,
e
.
reply_content
,
e
.
reply_status
,
e
.
reply_date
,
e
.
erp_create_time
,
null
as
update_time
,
personal
.
clique_id
,
personal
.
clique_member_id
,
e
.
member_card_no
,
personal
.
member_name
,
1
as
from_erp
,
e
.
reply_status
,
e
.
reply_date
,
e
.
erp_create_time
,
NULL
AS
update_time
,
members_view
.
clique_id
,
members_view
.
clique_member_id
,
e
.
member_card_no
,
members_view
.
third_nickname
,
1
AS
from_erp
FROM
`order_import_JNBY`
.
order_evaluate_import
e
left
join
tab_gic_mall_order_item_copy
itemc
on
itemc
.
pro_code
=
e
.
mall_pro_code
left
join
`gic3.0`
.
tab_gic_member_personal_JNBY
personal
on
personal
.
member_id
=
itemc
.
member_id
-- WHERE e.member_card_no in ('WX60206813','WX60332175','WX01805426')
LEFT
JOIN
tab_gic_mall_order_copy
o
ON
o
.
erp_order_id
=
e
.
erp_order_id
LEFT
JOIN
tab_gic_mall_order_item_copy
itemc
ON
itemc
.
mall_pro_sku_code
=
e
.
mall_pro_sku_code
AND
itemc
.
order_id
=
o
.
order_id
LEFT
JOIN
`gic3.0`
.
tab_gic_member_JNBY
members_view
ON
members_view
.
card_num
=
e
.
member_card_no
group
by
e
.
id
;
-- 把收藏夹导入导临时表【tab_gic_mall_collection_copy】
INSERT
INTO
`tab_gic_mall_collection_copy`
(
...
...
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