SGGL_SHJ/DataBase/版本日志/SGGLDB_V2025-07-02-001-bwj.sql

34 lines
651 B
Transact-SQL

alter table PTP_PipelineList add TestPackageNo varchar(50)
go
ALTER VIEW [dbo].[View_TestPackage_PipelineList]
as
/*********ÊÔѹ°üÃ÷ϸ**********/
select l.PT_PipeId,
l.PTP_ID,
l.PipelineId,
l.TestPressure,
t.ProjectId,
t.TestPackageNo,
t.TestPackageName,
t.Remark,
t.UnitWorkId,
t.Tabler,
t.TableDate,
p.PipelineCode,
uw.UnitWorkCode,
uw.UnitWorkName,
uw.UnitId,
u.UnitCode,
u.UnitName,
t.adjustTestPressure
from PTP_PipelineList l
left join PTP_TestPackage as t on t.PTP_ID=l.PTP_ID
left join HJGL_Pipeline p on p.PipelineId = l.PipelineId
left join WBS_UnitWork uw on uw.UnitWorkId = t.UnitWorkId
left join Base_Unit u on u.UnitId =uw.UnitId
GO