修改质量月报汇总
This commit is contained in:
@@ -261,6 +261,45 @@ ProjectId from dbo.WBS_WorkPackage w where IsApprove=1 and SuperWorkPackageId is
|
||||
|
||||
|
||||
|
||||
GO
|
||||
|
||||
|
||||
|
||||
ALTER PROCEDURE [dbo].[Sp_DigData_CQMSDataCollect]
|
||||
(
|
||||
@year int
|
||||
)
|
||||
AS
|
||||
/*安全数据汇总*/
|
||||
SELECT CQMSDataCollectItemId
|
||||
,CQMSDataCollectId
|
||||
,SortIndex
|
||||
,CQMSContent
|
||||
,MeasureUnit
|
||||
,Month1
|
||||
,Month2
|
||||
,Month3
|
||||
,Month4
|
||||
,Month5
|
||||
,Month6
|
||||
,Month7
|
||||
,Month8
|
||||
,Month9
|
||||
,Month10
|
||||
,Month11
|
||||
,Month12
|
||||
,(CASE WHEN SortIndex=8 or SortIndex=11 or SortIndex=14 or SortIndex=17 or SortIndex=21 or SortIndex=25
|
||||
THEN ''
|
||||
ELSE CAST((ISNULL(CAST(Month1 AS int),0)+ISNULL(CAST(Month2 AS int),0)+ISNULL(CAST(Month3 AS int),0)+ISNULL(CAST(Month4 AS int),0)+ISNULL(CAST(Month5 AS int),0)
|
||||
+ISNULL(CAST(Month6 AS int),0)+ISNULL(CAST(Month7 AS int),0)+ISNULL(CAST(Month8 AS int),0)+ISNULL(CAST(Month9 AS int),0)+ISNULL(CAST(Month10 AS int),0)
|
||||
+ISNULL(CAST(Month11 AS int),0)+ISNULL(CAST(Month12 AS int),0)) AS NVARCHAR(50))
|
||||
END) AS MonthSum
|
||||
FROM dbo.DigData_CQMSDataCollectItem
|
||||
WHERE YEAR=@year
|
||||
order by SortIndex
|
||||
|
||||
|
||||
|
||||
GO
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user