Files
SGGL_SHJ/DataBase/版本日志/已更新脚本/2020年度/SGGLDB_V2020-08-10-001(数据修正).sql
T

91 lines
4.3 KiB
Transact-SQL
Raw Normal View History

2022-09-05 16:36:31 +08:00
--select * from Sys_User where Account='sgglb'
--select * from Sys_User where Account='admin'
delete from Meeting_WeekMeeting where CompileMan='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from Check_SpotCheckApprove where ApproveMan='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from Project_ProjectUser where UserId='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from ProjectSupervision_ProjectEvaluation where CompileMan='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from EduTrain_TrainRecordDetail where TrainingId
in (select TrainingId from EduTrain_TrainRecord where PlanId
in (select PlanId from Training_Plan where DesignerId='724bd52a-af89-4d77-a99b-91fbb45fd3cc'))
go
delete from EduTrain_TrainRecord where PlanId
in (select PlanId from Training_Plan where DesignerId='724bd52a-af89-4d77-a99b-91fbb45fd3cc')
go
delete from Training_Task where PlanId
in (select PlanId from Training_Plan where DesignerId='724bd52a-af89-4d77-a99b-91fbb45fd3cc')
go
delete from Training_TestPlanTraining where TestPlanId
in (select TestPlanId from Training_TestPlan where PlanId
in (select PlanId from Training_Plan where DesignerId='724bd52a-af89-4d77-a99b-91fbb45fd3cc'))
go
delete from Training_TestRecordItem where TestRecordId
in( select TestRecordId from Training_TestRecord where TestPlanId
in (select TestPlanId from Training_TestPlan where PlanId
in (select PlanId from Training_Plan where DesignerId='724bd52a-af89-4d77-a99b-91fbb45fd3cc')))
go
delete from Training_TestRecord where TestPlanId
in (select TestPlanId from Training_TestPlan where PlanId
in (select PlanId from Training_Plan where DesignerId='724bd52a-af89-4d77-a99b-91fbb45fd3cc'))
go
delete from Training_TestPlan where PlanId
in (select PlanId from Training_Plan where DesignerId='724bd52a-af89-4d77-a99b-91fbb45fd3cc')
go
delete from Training_Plan where DesignerId='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from InformationProject_Picture where CompileMan='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from QualityAudit_PersonQuality where CompileMan='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from QualityAudit_SafePersonQuality where CompileMan='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from License_LicenseItem where ConfirmManId='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from License_LimitedSpace where CancelManId='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from License_NightWork where CancelManId='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from Check_PauseNoticeFlowOperate where PauseNoticeId in
(select PauseNoticeId from Check_PauseNotice where ProfessionalEngineerId='724bd52a-af89-4d77-a99b-91fbb45fd3cc')
go
delete from Check_PauseNotice where ProfessionalEngineerId='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from Meeting_AttendMeeting where CompileMan='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from Check_RectifyNoticesFlowOperate where RectifyNoticesId
in (select RectifyNoticesId from Check_RectifyNotices where SignPerson='724bd52a-af89-4d77-a99b-91fbb45fd3cc')
go
delete from Check_RectifyNoticesItem where RectifyNoticesId
in (select RectifyNoticesId from Check_RectifyNotices where SignPerson='724bd52a-af89-4d77-a99b-91fbb45fd3cc')
go
delete from Check_RectifyNotices where SignPerson='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from Meeting_ClassMeeting where CompileMan='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from Check_RectifyNoticesFlowOperate where RectifyNoticesId in
(select RectifyNoticesId from Check_RectifyNotices where CompleteManId='724bd52a-af89-4d77-a99b-91fbb45fd3cc')
go
delete from Check_RectifyNoticesItem where RectifyNoticesId in
(select RectifyNoticesId from Check_RectifyNotices where CompleteManId='724bd52a-af89-4d77-a99b-91fbb45fd3cc')
go
delete from Check_RectifyNotices where CompleteManId='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from Sys_FlowOperate where OperaterId='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from Sys_Log where UserId='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from Sys_User where UserId='724bd52a-af89-4d77-a99b-91fbb45fd3cc'
go
delete from Person_QuarterCheckApprove where UserId='685988ad-3711-4b32-a1a7-7eb36228aea5'
go
delete from Person_QuarterCheckItem where UserId='685988ad-3711-4b32-a1a7-7eb36228aea5'
go
delete from Sys_User where UserId='685988ad-3711-4b32-a1a7-7eb36228aea5'
go