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 a819f5fc
authored
Jul 28, 2026
by
周立明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sql补充
1 parent
74af82fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 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 @
a819f5f
...
...
@@ -215,9 +215,6 @@ INSERT INTO dj_car_life_fee_category
(
1403
,
3
,
'公共'
,
1
,
1
,
2
,
'system'
,
now
(),
'system'
,
now
(),
'N'
),
(
1404
,
3
,
'公共'
,
1
,
1
,
2
,
'system'
,
now
(),
'system'
,
now
(),
'N'
);
select
*
from
dj_car_life_fee_category
;
INSERT
INTO
dj_car_life_fee_category_name
(
id
,
fee_category_id
,
fee_category_name
,
node_type
,
parent_id
,
category_to_sort
,
created_by
,
created_date
,
updated_by
,
updated_date
,
deleted_flag
)
VALUES
...
...
@@ -262,6 +259,28 @@ INSERT INTO dj_car_life_fee_category_scene
(
1404
,
'100102'
,
2
,
'1.2'
,
'system'
,
now
(),
'system'
,
now
(),
'N'
),
(
1404
,
'100103'
,
3
,
'1.3'
,
'system'
,
now
(),
'system'
,
now
(),
'N'
);
INSERT
INTO
dj_car_life_fee_category_scene
(
fee_category_id
,
base_scene_code
,
application_scene_type
,
application_scene_name
,
created_by
,
created_date
,
updated_by
,
updated_date
,
deleted_flag
)
SELECT
fc
.
id
,
'100102'
,
2
,
'1.2'
,
'system'
,
now
(),
'system'
,
now
(),
'N'
from
dj_car_life_fee_category
fc
where
fc
.
deleted_flag
=
'N'
and
not
EXISTS
(
select
1
from
dj_car_life_fee_category_scene
fds
where
fc
.
id
=
fds
.
fee_category_id
and
fds
.
deleted_flag
=
'N'
and
fds
.
base_scene_code
in
(
100102
)
)
and
EXISTS
(
select
1
from
dj_car_life_fee_category_scene
fds
where
fc
.
id
=
fds
.
fee_category_id
and
fds
.
deleted_flag
=
'N'
)
;
INSERT
INTO
dj_car_life_fee_category_scene
(
fee_category_id
,
base_scene_code
,
application_scene_type
,
application_scene_name
,
created_by
,
created_date
,
updated_by
,
updated_date
,
deleted_flag
)
SELECT
fc
.
id
,
'100103'
,
3
,
'1.3'
,
'system'
,
now
(),
'system'
,
now
(),
'N'
from
dj_car_life_fee_category
fc
where
fc
.
deleted_flag
=
'N'
and
not
EXISTS
(
select
1
from
dj_car_life_fee_category_scene
fds
where
fc
.
id
=
fds
.
fee_category_id
and
fds
.
deleted_flag
=
'N'
and
fds
.
base_scene_code
in
(
100103
)
)
and
EXISTS
(
select
1
from
dj_car_life_fee_category_scene
fds
where
fc
.
id
=
fds
.
fee_category_id
and
fds
.
deleted_flag
=
'N'
)
;
###
周立明
-----------------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