Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
doc
/
ht_project_doc
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 19b4a07b
authored
Jun 01, 2026
by
周立明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sql 修改
1 parent
d589a46e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
14_v5.8.2_20260615/sql/DML/dj组dj_smartcarlife_dml.sql
14_v5.8.2_20260615/sql/DML/dj组dj_smartcarlife_dml.sql
View file @
19b4a07
...
@@ -26,7 +26,7 @@ select a.id,1,b.reality_platform_merchant_id,b.reality_platform_merchant_name, b
...
@@ -26,7 +26,7 @@ select a.id,1,b.reality_platform_merchant_id,b.reality_platform_merchant_name, b
'system'
,
NOW
(),
'system'
,
now
(),
'N'
'system'
,
NOW
(),
'system'
,
now
(),
'N'
from
dj_car_life_online_statement_account_trade_detail
a
from
dj_car_life_online_statement_account_trade_detail
a
join
dj_car_life_order_division
b
on
b
.
division_order_code
=
a
.
division_order_code
and
b
.
deleted_flag
=
'N'
join
dj_car_life_order_division
b
on
b
.
division_order_code
=
a
.
division_order_code
and
b
.
deleted_flag
=
'N'
where
a
.
deleted_flag
=
'N'
AND
b
.
gl_division_money
>
0
;
where
a
.
deleted_flag
=
'N'
AND
b
.
gl_division_money
>
0
and
a
.
division_order_code
is
not
null
;
insert
into
dj_car_life_online_statement_account_trade_distribution_detail
(
trade_detail_id
,
target_merchant_type
,
reality_merchant_id
,
reality_merchant_name
,
division_money
,
service_charge
,
created_by
,
created_date
,
updated_by
,
updated_date
,
deleted_flag
)
insert
into
dj_car_life_online_statement_account_trade_distribution_detail
(
trade_detail_id
,
target_merchant_type
,
reality_merchant_id
,
reality_merchant_name
,
division_money
,
service_charge
,
created_by
,
created_date
,
updated_by
,
updated_date
,
deleted_flag
)
select
a
.
id
,
4
,
b
.
djzhy_sub_merchant_id
,
b
.
djzhy_sub_merchant_name
,
b
.
djzhy_sub_merchant_division_money
,
select
a
.
id
,
4
,
b
.
djzhy_sub_merchant_id
,
b
.
djzhy_sub_merchant_name
,
b
.
djzhy_sub_merchant_division_money
,
...
@@ -34,21 +34,21 @@ select a.id,4,b.djzhy_sub_merchant_id,b.djzhy_sub_merchant_name, b.djzhy_sub_mer
...
@@ -34,21 +34,21 @@ select a.id,4,b.djzhy_sub_merchant_id,b.djzhy_sub_merchant_name, b.djzhy_sub_mer
'system'
,
NOW
(),
'system'
,
now
(),
'N'
'system'
,
NOW
(),
'system'
,
now
(),
'N'
from
dj_car_life_online_statement_account_trade_detail
a
from
dj_car_life_online_statement_account_trade_detail
a
join
dj_car_life_order_division
b
on
b
.
division_order_code
=
a
.
division_order_code
and
b
.
deleted_flag
=
'N'
join
dj_car_life_order_division
b
on
b
.
division_order_code
=
a
.
division_order_code
and
b
.
deleted_flag
=
'N'
where
a
.
deleted_flag
=
'N'
AND
b
.
djzhy_sub_merchant_division_money
>
0
;
where
a
.
deleted_flag
=
'N'
AND
b
.
djzhy_sub_merchant_division_money
>
0
and
a
.
division_order_code
is
not
null
;
insert
into
dj_car_life_online_statement_account_trade_distribution_detail
(
trade_detail_id
,
target_merchant_type
,
reality_merchant_id
,
reality_merchant_name
,
division_money
,
service_charge
,
created_by
,
created_date
,
updated_by
,
updated_date
,
deleted_flag
)
insert
into
dj_car_life_online_statement_account_trade_distribution_detail
(
trade_detail_id
,
target_merchant_type
,
reality_merchant_id
,
reality_merchant_name
,
division_money
,
service_charge
,
created_by
,
created_date
,
updated_by
,
updated_date
,
deleted_flag
)
select
a
.
id
,
3
,
b
.
reality_shop_merchant_id
,
b
.
reality_shop_merchant_name
,
b
.
shop_division_money
,
0
,
'system'
,
NOW
(),
'system'
,
now
(),
'N'
select
a
.
id
,
3
,
b
.
reality_shop_merchant_id
,
b
.
reality_shop_merchant_name
,
b
.
shop_division_money
,
0
,
'system'
,
NOW
(),
'system'
,
now
(),
'N'
from
dj_car_life_online_statement_account_trade_detail
a
from
dj_car_life_online_statement_account_trade_detail
a
join
dj_car_life_order_division
b
on
b
.
division_order_code
=
a
.
division_order_code
and
b
.
deleted_flag
=
'N'
join
dj_car_life_order_division
b
on
b
.
division_order_code
=
a
.
division_order_code
and
b
.
deleted_flag
=
'N'
where
a
.
deleted_flag
=
'N'
AND
b
.
shop_division_money
>
0
;
where
a
.
deleted_flag
=
'N'
AND
b
.
shop_division_money
>
0
and
a
.
division_order_code
is
not
null
;
insert
into
dj_car_life_online_statement_account_trade_distribution_detail
(
trade_detail_id
,
target_merchant_type
,
reality_merchant_id
,
reality_merchant_name
,
division_money
,
service_charge
,
created_by
,
created_date
,
updated_by
,
updated_date
,
deleted_flag
)
insert
into
dj_car_life_online_statement_account_trade_distribution_detail
(
trade_detail_id
,
target_merchant_type
,
reality_merchant_id
,
reality_merchant_name
,
division_money
,
service_charge
,
created_by
,
created_date
,
updated_by
,
updated_date
,
deleted_flag
)
select
a
.
id
,
2
,
b
.
reality_merchant_id
,
b
.
reality_merchant_name
,
b
.
division_money
,
0
,
'system'
,
NOW
(),
'system'
,
now
(),
'N'
select
a
.
id
,
2
,
b
.
reality_merchant_id
,
b
.
reality_merchant_name
,
b
.
division_money
,
0
,
'system'
,
NOW
(),
'system'
,
now
(),
'N'
from
dj_car_life_merchant_distribution
b
from
dj_car_life_merchant_distribution
b
join
dj_car_life_online_statement_account_trade_detail
a
on
a
.
division_order_code
=
b
.
division_order_code
and
a
.
deleted_flag
=
'N'
join
dj_car_life_online_statement_account_trade_detail
a
on
a
.
division_order_code
=
b
.
division_order_code
and
a
.
deleted_flag
=
'N'
where
b
.
deleted_flag
=
'N'
and
b
.
target_merchant_type
=
2
and
b
.
division_money
>
0
where
b
.
deleted_flag
=
'N'
and
b
.
target_merchant_type
=
2
and
b
.
division_money
>
0
and
a
.
division_order_code
is
not
null
;
###
立明
-----------------end---------------------
###
立明
-----------------end---------------------
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment