移交优化

This commit is contained in:
2024-11-25 09:35:14 +08:00
parent da8977ac94
commit ce75af6899
16 changed files with 92 additions and 71 deletions
@@ -0,0 +1,24 @@
--1、修改管道表字段数据类型
ALTER TABLE Transfer_Piping ALTER COLUMN TotalFactor decimal(10, 2);
ALTER TABLE Transfer_Piping ALTER COLUMN CompleteFactor decimal(10, 2);
update Transfer_Piping set CompleteProportion='0'where CompleteProportion='' or CompleteProportion is null;
go
ALTER TABLE Transfer_Piping ALTER COLUMN CompleteProportion decimal(10, 2);
go
--3、移交统计表补充电伴热和保温冷
IF NOT EXISTS(select * from sys.columns where name='Insulation' and [object_id]=object_id(N'Transfer_SystemControl'))
BEGIN
--电伴热
ALTER TABLE Transfer_SystemControl ADD ElectricHeatTracing nvarchar(50) NULL;
--保温/冷
ALTER TABLE Transfer_SystemControl ADD Insulation nvarchar(50) NULL;
END
go
@@ -0,0 +1,13 @@
--历史尾项数据修改
update Transfer_PunchlistFrom set IsMatI='Y2' where IsMatI='Y';
update Transfer_PunchlistFrom set Punch_Type='JWD' where Punch_Type='FWD';
go
update Transfer_PunchlistFrom set Sub_Sys_No='LHC1-CVL05-01-01' where Sub_Sys_No='CVL05-01';
update Transfer_PunchlistFrom set Sub_Sys_No='LHC1-EL01-00-01' where Sub_Sys_No='EL01-01';
go