YueYunyun 1 рік тому
батько
коміт
a8618f3da2

+ 71 - 0
WE_2024/20240624_We_App_Update.sql

@@ -0,0 +1,71 @@
+USE [We_AppDb_V2.2_Dev];
+
+DELETE FROM [dbo].[Train_CampRoleGroups] WHERE CreationTime >= '2024-06-13' AND  CreationTime <= '2024-06-20';
+DELETE FROM [dbo].[Bs_TrainingGroupRelateRoles] WHERE CreationTime >= '2024-06-13' AND  CreationTime <= '2024-06-15';
+DELETE FROM [dbo].[Bs_TrainingRoleGroups] WHERE CreationTime >= '2024-06-13' AND  CreationTime <= '2024-06-15';
+DELETE FROM [dbo].[Bs_TrainingRoles] WHERE CreationTime >= '2024-06-13' AND  CreationTime <= '2024-06-15';
+
+
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010111', N'总指挥', N'总指挥', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010112', N'指挥长', N'指挥长', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010113', N'党建部', N'党建部', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010114', N'安监部', N'安监部', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010115', N'调控中心', N'调控中心', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010116', N'大面积停电应急办', N'大面积停电应急办', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010117', N'大面积停电应急办主任', N'大面积停电应急办主任', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010118', N'大面积停电应急领导小组', N'大面积停电应急领导小组', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010119', N'生技部', N'生技部', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010120', N'分部领导', N'分部领导', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010121', N'电网调控组(调控中心)', N'电网调控组(调控中心)', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010122', N'生产技术组(生技部)', N'生产技术组(生技部)', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010123', N'舆情处置组(党建部)', N'舆情处置组(党建部)', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010124', N'综合协调组(安监部)', N'综合协调组(安监部)', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010125', N'相关事发单位', N'相关事发单位', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010126', N'常态化值班员', N'常态化值班员', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+
+INSERT INTO [dbo].[Bs_TrainingRoleGroups] ([Id], [RoleGroupName], [Roles], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010101', N'HD大面积停电', N'JY2011000010111,JY2011000010112,JY2011000010113,JY2011000010114,JY2011000010115,JY2011000010116,JY2011000010117,JY2011000010118,JY2011000010119,JY2011000010120,JY2011000010121,JY2011000010122,JY2011000010123,JY2011000010124,JY2011000010125,JY2011000010126', N'HD大面积停电', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010101', N'JY2011000010111', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010101', N'JY2011000010112', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010101', N'JY2011000010113', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010101', N'JY2011000010114', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010101', N'JY2011000010115', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010101', N'JY2011000010116', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010101', N'JY2011000010117', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010101', N'JY2011000010118', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010101', N'JY2011000010119', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010101', N'JY2011000010120', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010101', N'JY2011000010121', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010101', N'JY2011000010122', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010101', N'JY2011000010123', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010101', N'JY2011000010124', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010101', N'JY2011000010125', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010101', N'JY2011000010126', '2024-06-13', 3);
+
+
+
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010151', N'现场人员', N'现场人员', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010152', N'人身伤亡应急办主任', N'人身伤亡应急办主任', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010153', N'总值班室主任', N'总值班室主任', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010154', N'人身伤亡应急办', N'人身伤亡应急办', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010155', N'副总指挥', N'副总指挥', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010156', N'后勤中心', N'后勤中心', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010157', N'华甸能源', N'华甸能源', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingRoles] ([Id], [RoleName], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2011000010158', N'产业办', N'产业办', '0', NULL, NULL, NULL, NULL, '2024-06-13', 3);
+
+INSERT INTO [dbo].[Bs_TrainingRoleGroups] ([Id], [RoleGroupName], [Roles], [Description], [IsDeleted], [DeleterUserId], [DeletionTime], [LastModificationTime], [LastModifierUserId], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010102', N'HD人身伤亡事件', N'JY1011000010111,JY1011000010112,JY1011000010113,JY1011000010114,JY1011000010119,JY1011000010120,JY2011000010151,JY2011000010152,JY2011000010153,JY2011000010154,JY2011000010155,JY2011000010156,JY2011000010157,JY2011000010158', N'人身伤亡事件', '0',NULL, NULL, NULL, NULL, '2024-06-13', 3);
+
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010102', N'JY2011000010111', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010102', N'JY2011000010112', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010102', N'JY2011000010113', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010102', N'JY2011000010114', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010102', N'JY2011000010119', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010102', N'JY2011000010120', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010102', N'JY2011000010151', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010102', N'JY2011000010152', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010102', N'JY2011000010153', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010102', N'JY2011000010154', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010102', N'JY2011000010155', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010102', N'JY2011000010156', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010102', N'JY2011000010157', '2024-06-13', 3);
+INSERT INTO [dbo].[Bs_TrainingGroupRelateRoles] ([RoleGroupNo], [TrainRoleNo], [CreationTime], [CreatorUserId]) VALUES (N'JY2012000010102', N'JY2011000010158', '2024-06-13', 3);

Різницю між файлами не показано, бо вона завелика
+ 392 - 0
WE_2024/20240624_We_Platform_Update.sql


+ 38 - 0
WE_2024/CLEAN.sql

@@ -0,0 +1,38 @@
+ 
+ /*
+ USE [We_AppDb_V2.2_Dev]; 
+ DECLARE @NO NVARCHAR(50);	SET @NO='JY2001000010027';
+ 
+ UPDATE [dbo].[Train_Camps] SET [CampState]=2,[StartDate]=NULL WHERE [Id]=@NO
+ UPDATE [dbo].[Train_CampGroups] SET [CampGroupState]=1,[RunningInfo]=NULL,[StartDate]=NULL,[EngDate]=NULL,[RoundIndex]=1 WHERE [CampNo]=@NO
+ UPDATE [dbo].[Train_CampGroupScores] SET [SystemScore]=0,[CorrectionScore]=0,[SpecialistScore]=0,[AudienceScore]=0,[ReferenceScore]=0,[FinalTotalScore]=0,[BehaviorTagScoreInfo]='' WHERE [CampNo]=@NO
+ UPDATE  [dbo].[Train_CampGroupLogs] SET LogState=1  WHERE LogType=2 AND (LogState=2 OR LogState=3 OR LogState=4  OR LogState=5) AND [CampNo]=@NO 
+ DELETE  [dbo].[Train_CampGroupScores] WHERE [CampNo]=@NO 
+ DELETE  [dbo].[Train_CampGroupLogs] WHERE [CampNo]=@NO 
+ DELETE  [dbo].[Train_CampGroupPortraits] WHERE [CampNo]=@NO
+ DELETE  [dbo].[Train_CampGroupRoles] WHERE [GroupNo] like @NO+'%'
+ 
+ 
+
+ USE [We_AppDb_V2.2_Dev]; 
+ DECLARE @NO NVARCHAR(50);	SET @NO='JY2001000010075——';
+
+ DELETE  [dbo].[Train_CampGroupScores] WHERE [CampNo]=@NO 
+ DELETE  [dbo].[Train_CampGroupLogs] WHERE [CampNo]=@NO 
+ DELETE  [dbo].[Train_CampGroupPortraits] WHERE [CampNo]=@NO
+ DELETE  [dbo].[Train_CampGroupRoles] WHERE [GroupNo] like @NO+'%'
+ --DELETE  [dbo].[Train_CampHelps] WHERE [CampNo]=@NO 
+  --DELETE  [dbo].[Train_CampGroups] WHERE [CampNo]=@NO 
+  --DELETE  [dbo].[Train_Camps] WHERE [Id]=@NO 
+
+ */
+
+/*
+USE [We_AppDb_V2.2_Dev]; 
+--关联学员提示信息
+INSERT INTO [dbo].[Train_CampHelps] ([HelpNo], [CampNo], [CreationTime], [CreatorUserId]) VALUES (N'', N'', '2024-06-26', 3);
+
+*/
+
+  
+ 

Деякі файли не було показано, через те що забагато файлів було змінено