From b9f78c5f0be9f313fbadb9b9073b3ce6f717f4ae Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Wed, 7 Jun 2023 08:57:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9uat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Domain/SQLFile/20230606号.sql | 6 ++--- .../SQLFile/4.21号发布后维护.sql | 23 +++++++++++++++++++ 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/IRaCIS.Core.Domain/SQLFile/20230606号.sql b/IRaCIS.Core.Domain/SQLFile/20230606号.sql index cefb74b31..a4ff35eb7 100644 --- a/IRaCIS.Core.Domain/SQLFile/20230606号.sql +++ b/IRaCIS.Core.Domain/SQLFile/20230606号.sql @@ -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]; \ No newline at end of file diff --git a/IRaCIS.Core.Domain/SQLFile/4.21号发布后维护.sql b/IRaCIS.Core.Domain/SQLFile/4.21号发布后维护.sql index 85eb8ce4f..f21e13bd7 100644 --- a/IRaCIS.Core.Domain/SQLFile/4.21号发布后维护.sql +++ b/IRaCIS.Core.Domain/SQLFile/4.21号发布后维护.sql @@ -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 + + + +