From e66edbf2c726d5fce9b7a5cadbc0a6ec9b32eec4 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 8 Jun 2023 11:28:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Domain/SQLFile/20230606号.sql | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 IRaCIS.Core.Domain/SQLFile/20230606号.sql diff --git a/IRaCIS.Core.Domain/SQLFile/20230606号.sql b/IRaCIS.Core.Domain/SQLFile/20230606号.sql deleted file mode 100644 index a4ff35eb7..000000000 --- a/IRaCIS.Core.Domain/SQLFile/20230606号.sql +++ /dev/null @@ -1,22 +0,0 @@ - -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 - -