diff --git a/DataBase/版本日志/SGGLDB_V2023-11-01.sql b/DataBase/版本日志/SGGLDB_V2023-11-01.sql new file mode 100644 index 00000000..41188e46 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2023-11-01.sql @@ -0,0 +1,18 @@ +update PHTGL_ContractTrack set TotalCostFixedComprehensiveUnitPrice =ROUND(TotalCostFixedComprehensiveUnitPrice ,2) where TotalCostFixedComprehensiveUnitPrice is not null ; +go +update PHTGL_ContractTrack set MainMaterialCost =ROUND(MainMaterialCost ,2) where MainMaterialCost is not null ; +go +update PHTGL_ContractTrack set TotalPrice =TRY_CAST(TotalPrice AS decimal(18, 2)) where TotalPrice is not null ; + + +alter table dbo.PHTGL_ContractTrack + alter column TotalCostFixedComprehensiveUnitPrice decimal(18, 2) null +go + +alter table dbo.PHTGL_ContractTrack + alter column MainMaterialCost decimal(18, 2) null +go + +alter table dbo.PHTGL_ContractTrack + alter column TotalPrice decimal(18, 2) null +go