修改uat

Uat_Study
hang 2023-06-07 08:57:27 +08:00
parent af4aec6a69
commit b9f78c5f0b
2 changed files with 25 additions and 4 deletions

View File

@ -1,4 +1,6 @@

update FrontAuditConfig set Identification='' where Identification is NULL
--
ALTER TABLE [dbo].[Trial] ADD [AttendedReviewerTypes] varchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NOT NULL
@ -18,7 +20,3 @@ update Trial set DeclarationTypes ='|' + (select Code from Dictionary where Id=
select DISTINCT AttendedReviewerType ,AttendedReviewerTypes, DeclarationTypeId, Dictionary.Code,DeclarationTypes,Dictionary.[Value] from Trial inner join Dictionary on Trial.DeclarationTypeId=Dictionary.Id
--
ALTER TABLE [dbo].[Trial] DROP COLUMN [DeclarationTypeId];
ALTER TABLE [dbo].[Trial] DROP COLUMN [AttendedReviewerType];

View File

@ -159,6 +159,29 @@ on OrganInfo.Id=OrganTrialInfo.OrganInfoId where OrganTrialInfo.OrganType is nul
update FrontAuditConfig set Identification='' where Identification is NULL
--
ALTER TABLE [dbo].[Trial] ADD [AttendedReviewerTypes] varchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NOT NULL
GO
ALTER TABLE [dbo].[Trial] ADD [DeclarationTypes] varchar(255) COLLATE Chinese_PRC_CI_AS DEFAULT '' NOT NULL
GO
--sql
UPDATE Trial SET AttendedReviewerTypes = '|' + CAST(AttendedReviewerType AS VARCHAR(10)) + '|'
update Trial set DeclarationTypes ='|' + (select Code from Dictionary where Id= Trial.DeclarationTypeId) + '|'
--sql
select DISTINCT AttendedReviewerType ,AttendedReviewerTypes, DeclarationTypeId, Dictionary.Code,DeclarationTypes,Dictionary.[Value] from Trial inner join Dictionary on Trial.DeclarationTypeId=Dictionary.Id