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 8a75cd47
authored
Jul 17, 2026
by
chenxi
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交SQL
1 parent
be7e0383
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
79 additions
and
0 deletions
21_v5.8.4_20260728/sql/DML/scrm组dj_smartcarlife_dml.sql
21_v5.8.4_20260728/sql/DML/scrm组dj_smartcarlife_dml.sql
View file @
8a75cd4
...
@@ -127,6 +127,26 @@ WHERE mgi.deleted_flag = 'N'
...
@@ -127,6 +127,26 @@ WHERE mgi.deleted_flag = 'N'
-- 占位: {EQUITY_TYPE_IDS} → smartcarlife.goodsType.equity 配置值, 默认 126
-- 占位: {EQUITY_TYPE_IDS} → smartcarlife.goodsType.equity 配置值, 默认 126
-- 占位: {EXTENDED_INSURANCE_TYPE_IDS} → smartcarlife.goodsType.extendedInsurance 配置值, 默认 1
-- 占位: {EXTENDED_INSURANCE_TYPE_IDS} → smartcarlife.goodsType.extendedInsurance 配置值, 默认 1
update
dj_car_life_upgrade_goods
ug
JOIN
dj_car_life_goods_info
gi
ON
gi
.
goods_code
=
ug
.
goods_code
AND
gi
.
deleted_flag
=
'N'
set
ug
.
purchase_cost
=
dj_cost
,
ug
.
operation_coefficient
=
1
,
ug
.
operation_cost
=
ug
.
purchase_cost
*
ug
.
operation_coefficient
,
gi
.
updated_by
=
'cx_260728上线刷数据SQL'
,
gi
.
updated_date
=
now
()
WHERE
ug
.
deleted_flag
=
'N'
AND
gi
.
supplier_code
=
'12'
-- 占位: supplier_glzy_id 配置值, 默认 '12'
AND
gi
.
goods_type
IN
(
73
,
102
,
146
,
158
,
114
);
update
dj_car_life_upgrade_goods
ug
JOIN
dj_car_life_goods_info
gi
ON
gi
.
goods_code
=
ug
.
goods_code
AND
gi
.
deleted_flag
=
'N'
set
ug
.
operation_cost
=
ug
.
purchase_cost
*
ug
.
operation_coefficient
,
gi
.
updated_by
=
'cx_260728上线刷数据SQL'
,
gi
.
updated_date
=
now
()
WHERE
ug
.
deleted_flag
=
'N'
AND
gi
.
supplier_code
=
'12'
-- 占位: supplier_glzy_id 配置值, 默认 '12'
AND
gi
.
goods_type
IN
(
73
,
102
,
146
,
158
,
114
);
-----------------dev end-------------------
-----------------dev end-------------------
----------------------test start-------------------
----------------------test start-------------------
...
@@ -147,6 +167,26 @@ WHERE mgi.deleted_flag = 'N'
...
@@ -147,6 +167,26 @@ WHERE mgi.deleted_flag = 'N'
-- 占位: {EQUITY_TYPE_IDS} → smartcarlife.goodsType.equity 配置值, 默认 126
-- 占位: {EQUITY_TYPE_IDS} → smartcarlife.goodsType.equity 配置值, 默认 126
-- 占位: {EXTENDED_INSURANCE_TYPE_IDS} → smartcarlife.goodsType.extendedInsurance 配置值, 默认 1
-- 占位: {EXTENDED_INSURANCE_TYPE_IDS} → smartcarlife.goodsType.extendedInsurance 配置值, 默认 1
update
dj_car_life_upgrade_goods
ug
JOIN
dj_car_life_goods_info
gi
ON
gi
.
goods_code
=
ug
.
goods_code
AND
gi
.
deleted_flag
=
'N'
set
ug
.
purchase_cost
=
dj_cost
,
ug
.
operation_coefficient
=
1
,
ug
.
operation_cost
=
ug
.
purchase_cost
*
ug
.
operation_coefficient
,
gi
.
updated_by
=
'cx_260728上线刷数据SQL'
,
gi
.
updated_date
=
now
()
WHERE
ug
.
deleted_flag
=
'N'
AND
gi
.
supplier_code
=
'12'
-- 占位: supplier_glzy_id 配置值, 默认 '12'
AND
gi
.
goods_type
IN
(
105
,
109
,
110
,
111
,
112
,
113
,
121
,
125
,
200
,
228
,
267
,
159
);
update
dj_car_life_upgrade_goods
ug
JOIN
dj_car_life_goods_info
gi
ON
gi
.
goods_code
=
ug
.
goods_code
AND
gi
.
deleted_flag
=
'N'
set
ug
.
operation_cost
=
ug
.
purchase_cost
*
ug
.
operation_coefficient
,
gi
.
updated_by
=
'cx_260728上线刷数据SQL'
,
gi
.
updated_date
=
now
()
WHERE
ug
.
deleted_flag
=
'N'
AND
gi
.
supplier_code
=
'12'
-- 占位: supplier_glzy_id 配置值, 默认 '12'
AND
gi
.
goods_type
IN
(
105
,
109
,
110
,
111
,
112
,
113
,
121
,
125
,
200
,
228
,
267
,
159
);
-----------------test end-------------------
-----------------test end-------------------
...
@@ -168,6 +208,26 @@ WHERE mgi.deleted_flag = 'N'
...
@@ -168,6 +208,26 @@ WHERE mgi.deleted_flag = 'N'
-- 占位: {EQUITY_TYPE_IDS} → smartcarlife.goodsType.equity 配置值, 默认 126
-- 占位: {EQUITY_TYPE_IDS} → smartcarlife.goodsType.equity 配置值, 默认 126
-- 占位: {EXTENDED_INSURANCE_TYPE_IDS} → smartcarlife.goodsType.extendedInsurance 配置值, 默认 1
-- 占位: {EXTENDED_INSURANCE_TYPE_IDS} → smartcarlife.goodsType.extendedInsurance 配置值, 默认 1
update
dj_car_life_upgrade_goods
ug
JOIN
dj_car_life_goods_info
gi
ON
gi
.
goods_code
=
ug
.
goods_code
AND
gi
.
deleted_flag
=
'N'
set
ug
.
purchase_cost
=
dj_cost
,
ug
.
operation_coefficient
=
1
,
ug
.
operation_cost
=
ug
.
purchase_cost
*
ug
.
operation_coefficient
,
gi
.
updated_by
=
'cx_260728上线刷数据SQL'
,
gi
.
updated_date
=
now
()
WHERE
ug
.
deleted_flag
=
'N'
AND
gi
.
supplier_code
=
'12'
-- 占位: supplier_glzy_id 配置值, 默认 '12'
AND
gi
.
goods_type
IN
(
107
,
109
,
113
);
update
dj_car_life_upgrade_goods
ug
JOIN
dj_car_life_goods_info
gi
ON
gi
.
goods_code
=
ug
.
goods_code
AND
gi
.
deleted_flag
=
'N'
set
ug
.
operation_cost
=
ug
.
purchase_cost
*
ug
.
operation_coefficient
,
gi
.
updated_by
=
'cx_260728上线刷数据SQL'
,
gi
.
updated_date
=
now
()
WHERE
ug
.
deleted_flag
=
'N'
AND
gi
.
supplier_code
=
'12'
-- 占位: supplier_glzy_id 配置值, 默认 '12'
AND
gi
.
goods_type
IN
(
107
,
109
,
113
);
-----------------beta end-------------------
-----------------beta end-------------------
----------------------pro start-------------------
----------------------pro start-------------------
...
@@ -188,6 +248,25 @@ WHERE mgi.deleted_flag = 'N'
...
@@ -188,6 +248,25 @@ WHERE mgi.deleted_flag = 'N'
-- 占位: {EQUITY_TYPE_IDS} → smartcarlife.goodsType.equity 配置值, 默认 126
-- 占位: {EQUITY_TYPE_IDS} → smartcarlife.goodsType.equity 配置值, 默认 126
-- 占位: {EXTENDED_INSURANCE_TYPE_IDS} → smartcarlife.goodsType.extendedInsurance 配置值, 默认 1
-- 占位: {EXTENDED_INSURANCE_TYPE_IDS} → smartcarlife.goodsType.extendedInsurance 配置值, 默认 1
update
dj_car_life_upgrade_goods
ug
JOIN
dj_car_life_goods_info
gi
ON
gi
.
goods_code
=
ug
.
goods_code
AND
gi
.
deleted_flag
=
'N'
set
ug
.
purchase_cost
=
dj_cost
,
ug
.
operation_coefficient
=
1
,
ug
.
operation_cost
=
ug
.
purchase_cost
*
ug
.
operation_coefficient
,
gi
.
updated_by
=
'cx_260728上线刷数据SQL'
,
gi
.
updated_date
=
now
()
WHERE
ug
.
deleted_flag
=
'N'
AND
gi
.
supplier_code
=
'12'
-- 占位: supplier_glzy_id 配置值, 默认 '12'
AND
gi
.
goods_type
IN
(
104
,
126
,
155
);
update
dj_car_life_upgrade_goods
ug
JOIN
dj_car_life_goods_info
gi
ON
gi
.
goods_code
=
ug
.
goods_code
AND
gi
.
deleted_flag
=
'N'
set
ug
.
operation_cost
=
ug
.
purchase_cost
*
ug
.
operation_coefficient
,
gi
.
updated_by
=
'cx_260728上线刷数据SQL'
,
gi
.
updated_date
=
now
()
WHERE
ug
.
deleted_flag
=
'N'
AND
gi
.
supplier_code
=
'12'
-- 占位: supplier_glzy_id 配置值, 默认 '12'
AND
gi
.
goods_type
IN
(
104
,
126
,
155
);
-----------------pro end-------------------
-----------------pro 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