Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dankal-data-view
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
仲光辉
dankal-data-view
Commits
1142c72f
Commit
1142c72f
authored
Sep 14, 2022
by
仲光辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add remove pro data sql.
parent
1edb672a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
110 additions
and
0 deletions
+110
-0
线上数据清除--2022.09.14.sql
线上数据清除--2022.09.14.sql
+110
-0
线上数据清除-2002.09.14-公司列表 2022-09-06 (需删除的测试客户档案).xls
线上数据清除-2002.09.14-公司列表 2022-09-06 (需删除的测试客户档案).xls
+0
-0
No files found.
线上数据清除--2022.09.14.sql
0 → 100644
View file @
1142c72f
SELECT
uuid
,
name
,
concat
SELECT
uuid
,
name
,
concat
FROM
company
WHERE
invite_code
IN
(
275060
,
478088
,
033493
,
730378
,
883756
,
345935
,
600897
,
535432
,
857526
,
010255
,
798210
,
017688
,
550507
,
529928
,
400442
,
429380
);
##
删除
合同
,
合同单元信息
UPDATE
contract
AS
c
INNER
JOIN
contract_company
AS
cc
ON
c
.
uuid
=
cc
.
contract_uuid
INNER
JOIN
company
AS
cm
ON
cm
.
uuid
=
cc
.
company_uuid
INNER
JOIN
contract_unit
AS
cu
ON
cu
.
contract_uuid
=
c
.
uuid
SET
c
.
is_delete
=
1
,
c
.
updater_name
=
'20220914:清除线上数据'
,
cu
.
is_delete
=
1
WHERE
cm
.
invite_code
IN
(
275060
,
478088
,
033493
,
730378
,
883756
,
345935
,
600897
,
535432
,
857526
,
010255
,
798210
,
017688
,
550507
,
529928
,
400442
,
429380
);
##
删除
账单主表
bill
bill
-
item
UPDATE
bill
AS
b
INNER
JOIN
bill_item
AS
bi
ON
b
.
uuid
=
bi
.
bill_uuid
AND
bi
.
is_delete
=
0
SET
b
.
is_delete
=
1
,
b
.
update_uuid
=
'20220914'
,
bi
.
is_delete
=
1
,
bi
.
update_uuid
=
'20220914'
WHERE
b
.
is_delete
=
0
AND
b
.
contract_uuid
IN
(
SELECT
uuid
FROM
contract
WHERE
updater_name
=
'20220914:清除线上数据'
AND
is_delete
=
1
);
##
服务前置化
DELETE
FROM
notification_instruments_sending_statistics
WHERE
company_uuid
IN
(
SELECT
uuid
FROM
company
WHERE
invite_code
IN
(
275060
,
478088
,
033493
,
730378
,
883756
,
345935
,
600897
,
535432
,
857526
,
010255
,
798210
,
017688
,
550507
,
529928
,
400442
,
429380
)
);
DELETE
FROM
notification_instruments_record
WHERE
company_uuid
IN
(
SELECT
uuid
FROM
company
WHERE
invite_code
IN
(
275060
,
478088
,
033493
,
730378
,
883756
,
345935
,
600897
,
535432
,
857526
,
010255
,
798210
,
017688
,
550507
,
529928
,
400442
,
429380
)
);
线上数据清除-2002.09.14-公司列表 2022-09-06 (需删除的测试客户档案).xls
0 → 100644
View file @
1142c72f
File added
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