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 322c8548
authored
Mar 26, 2026
by
叶立庆
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore(db): 添加数据库清理脚本
1 parent
c3028800
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
08_v5.7.2_20260407-ga/sql/DML/scrm组dj_smartcarlife_dml.sql
08_v5.7.2_20260407-ga/sql/DML/scrm组dj_smartcarlife_dml.sql
View file @
322c854
-- 叶立庆 -----------------start-------------------
##
清除数据脚本
UPDATE
`lw-cloud`
.
`sys_user`
SET
`del_flag`
=
'1'
WHERE
`user_id`
>=
'105'
;
UPDATE
`lw-cloud`
.
`sys_user_dept`
SET
`del_flag`
=
'2'
;
DELETE
FROM
`lw-cloud`
.
`sys_user_role`
;
UPDATE
`lw-cloud`
.
`sys_user_sp_relation`
SET
`del_flag`
=
'1'
;
UPDATE
`lw-cloud`
.
`sys_user_store_relation`
SET
`del_flag`
=
'1'
;
UPDATE
`lw-cloud`
.
`sys_role`
SET
`del_flag`
=
'2'
WHERE
`role_id`
>=
'2'
;
DELETE
FROM
`lw-cloud`
.
`sys_dept`
WHERE
`dept_id`
>=
'4'
;
UPDATE
`lw-cloud`
.
`sp_store_relation`
SET
`del_flag`
=
'1'
;
UPDATE
`lw-cloud`
.
`sp_info`
SET
`del_flag`
=
'1'
;
UPDATE
`lw-cloud`
.
`reception_biz_info`
SET
`del_flag`
=
'1'
;
UPDATE
`lw-cloud`
.
`biz_type`
SET
`del_flag`
=
'1'
;
UPDATE
`lw-cloud`
.
`business_store`
SET
`del_flag`
=
'1'
;
UPDATE
`lw-cloud`
.
`material`
SET
`del_flag`
=
'1'
;
UPDATE
`lw-cloud`
.
`material_folder`
SET
`del_flag`
=
'1'
;
--- 叶立庆 -----------------end---------------------
\ No newline at end of file
\ No newline at end of file
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