20260518 黄金口台账
This commit is contained in:
@@ -4,9 +4,10 @@ values('142E6B0B-530E-448B-84C5-1A93E0316E3B','
|
|||||||
go
|
go
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CREATE PROCEDURE [dbo].[HJGL_rpt_GoldMouthLedger]
|
CREATE PROCEDURE [dbo].[HJGL_rpt_GoldMouthLedger]
|
||||||
(
|
(
|
||||||
@projectId NVARCHAR(50) = null
|
@projectId NVARCHAR(50) =null
|
||||||
)
|
)
|
||||||
AS
|
AS
|
||||||
/**********뼝쏜(툭庫)보왯꼼醴섟쇱꿎횅훰깊***************/
|
/**********뼝쏜(툭庫)보왯꼼醴섟쇱꿎횅훰깊***************/
|
||||||
@@ -31,11 +32,17 @@ null as OldSteelCode,--
|
|||||||
ELSE WeldReportMain.JOT_WeldDate END) AS JOT_WeldDate, --보쌈휑퍅
|
ELSE WeldReportMain.JOT_WeldDate END) AS JOT_WeldDate, --보쌈휑퍅
|
||||||
ndt.NDT_Code,--쇱꿎렘랬
|
ndt.NDT_Code,--쇱꿎렘랬
|
||||||
(case when jointInfo.RT_States is not null and jointInfo.RT_States!='덤路쇱' then jointInfo.RT_States
|
(case when jointInfo.RT_States is not null and jointInfo.RT_States!='덤路쇱' then jointInfo.RT_States
|
||||||
else (case when jointInfo.PT_States is not null and jointInfo.PT_States!='덤路쇱' then jointInfo.PT_States
|
|
||||||
else (case when jointInfo.MT_States is not null and jointInfo.MT_States!='덤路쇱' then jointInfo.MT_States
|
|
||||||
else (case when jointInfo.UT_States is not null and jointInfo.UT_States!='덤路쇱' then jointInfo.UT_States
|
else (case when jointInfo.UT_States is not null and jointInfo.UT_States!='덤路쇱' then jointInfo.UT_States
|
||||||
else null end)end) end) end) as TestStates,--쇱꿎榴檄
|
else (case when jointInfo.MT_States is not null and jointInfo.MT_States!='덤路쇱' then jointInfo.MT_States
|
||||||
jointInfo.RTFeedbackDate as TestDate,--쇱꿎휑퍅
|
else (case when jointInfo.PT_States is not null and jointInfo.PT_States!='덤路쇱' then jointInfo.PT_States
|
||||||
|
else (case when jointInfo.PAUT_States is not null and jointInfo.PAUT_States!='덤路쇱' then jointInfo.PAUT_States
|
||||||
|
else null end) end)end) end) end) as TestStates,--쇱꿎榴檄
|
||||||
|
(case when jointInfo.RT_States is not null and jointInfo.RT_States='쇱꿎북목' then jointInfo.RT_TrustDate
|
||||||
|
else (case when jointInfo.UT_States is not null and jointInfo.UT_States='쇱꿎북목' then jointInfo.UT_TrustDate
|
||||||
|
else (case when jointInfo.MT_States is not null and jointInfo.MT_States='쇱꿎북목' then jointInfo.MT_TrustDate
|
||||||
|
else (case when jointInfo.PT_States is not null and jointInfo.PT_States='쇱꿎북목' then jointInfo.PT_TrustDate
|
||||||
|
else (case when jointInfo.PAUT_States is not null and jointInfo.PAUT_States='쇱꿎북목' then jointInfo.PAUT_TrustDate
|
||||||
|
else null end) end)end) end) end) as TestDate,--쇱꿎휑퍅
|
||||||
null as ConfirmMan,--횅훰훙
|
null as ConfirmMan,--횅훰훙
|
||||||
jointType.JOTY_Group,
|
jointType.JOTY_Group,
|
||||||
jointInfo.Sort1,
|
jointInfo.Sort1,
|
||||||
@@ -56,4 +63,5 @@ LEFT JOIN HJGL_BO_BatchDetail AS batchDetail on batchDetail.JOT_ID = jointInfo.J
|
|||||||
LEFT JOIN HJGL_BS_NDTType AS ndt ON ndt.NDT_ID = batchDetail.NDT
|
LEFT JOIN HJGL_BS_NDTType AS ndt ON ndt.NDT_ID = batchDetail.NDT
|
||||||
WHERE IsGold=1
|
WHERE IsGold=1
|
||||||
and (jointInfo.ProjectId=@projectId or @projectId is null)
|
and (jointInfo.ProjectId=@projectId or @projectId is null)
|
||||||
|
order by isoInfo.ISO_IsoNo,jointType.JOTY_Group,jointInfo.Sort1,jointInfo.Sort2,jointInfo.Sort3,jointInfo.Sort4,jointInfo.Sort5
|
||||||
GO
|
GO
|
||||||
|
|||||||
Reference in New Issue
Block a user