Files
HJGL_DS/DataBase/版本日志/HJGLDB_DS_2026-09-04_bwj.sql
T
2026-09-04 10:20:24 +08:00

27 lines
767 B
Transact-SQL

ALTER view [dbo].[View_PrintJointInfo]
as
select joint.JOT_ID,
joint.ProjectId,
joint.ISO_ID,
unit.UnitName,
installation.InstallationName,
iso.ISO_IsoNo,
joint.JOT_JointNo,
joint.JOT_JointDesc,
Steel.STE_Code,
joint.QRCodeAttachUrl,
welder.WED_Code,
report.JOT_WeldDate,
joint.IS_Proess
from HJGL_PW_JointInfo as joint
left join HJGL_PW_IsoInfo as iso on iso.ISO_ID = joint.ISO_ID
left join Project_Installation as installation on installation.InstallationId = joint.InstallationId
left join Base_Unit as unit on unit.UnitId = iso.BSU_ID
LEFT JOIN HJGL_BS_Steel AS Steel ON Steel.STE_ID = joint.STE_ID
left join HJGL_BS_Welder as welder on welder.WED_ID = joint.JOT_CellWelder
left join HJGL_BO_WeldReportMain as report on report.DReportID = joint.DReportID
GO