20250704 试压包导入

This commit is contained in:
2025-07-04 13:50:37 +08:00
parent b004037b4d
commit 2fe06c242f
7 changed files with 367 additions and 347 deletions
@@ -0,0 +1,33 @@
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