20260428 项目工作量统计

This commit is contained in:
2026-04-28 09:58:51 +08:00
parent cab2bb840a
commit 1f7e8e551d
2 changed files with 10 additions and 8 deletions
@@ -97,18 +97,13 @@ FROM
(SELECT ISO_ID,COUNT(jot.JOT_ID) AS total_fjot
FROM dbo.HJGL_PW_JointInfo jot
LEFT join HJGL_BO_WeldReportMain AS weldreport on weldreport.DReportID=jot.DReportID
WHERE (weldreport.JOT_WeldDate>=@StartDate or @StartDate is null) and (weldreport.JOT_WeldDate<=@EndDate or @EndDate is null)
AND jot.DReportID is not NULL
AND jot.WLO_Code='F'
WHERE jot.WLO_Code='F'
GROUP BY ISO_ID) v6 ON v6.ISO_ID=v.ISO_ID
--渡齡보왯
LEFT JOIN
(SELECT ISO_ID,COUNT(jot.JOT_ID) AS total_sjot
FROM dbo.HJGL_PW_JointInfo jot
LEFT join HJGL_BO_WeldReportMain AS weldreport on weldreport.DReportID=jot.DReportID
WHERE (weldreport.JOT_WeldDate>=@StartDate or @StartDate is null) and (weldreport.JOT_WeldDate<=@EndDate or @EndDate is null)
AND jot.DReportID is not NULL
AND jot.WLO_Code='S'
WHERE jot.WLO_Code='S'
GROUP BY ISO_ID) v7 ON v7.ISO_ID=v.ISO_ID
LEFT JOIN dbo.HJGL_PW_IsoInfo iso ON iso.ISO_ID = v.ISO_ID