20220717 pagebase

This commit is contained in:
2022-07-17 09:15:38 +08:00
parent e8ad744948
commit 1f471c2f56
103 changed files with 28450 additions and 22 deletions
@@ -1,5 +1,7 @@
alter table [dbo].[WBS_CostControl] add PlanStartDate datetime null
alter table [dbo].[WBS_CostControl] add PlanEndDate datetime null
alter table [dbo].[WBS_CostControl] add RealStartDate datetime null
alter table [dbo].[WBS_CostControl] add RealEndDate datetime null
--修复试卷统计与成绩不符
UPDATE Training_TestRecord SET Training_TestRecord.TestScores =item.SCore
from (SELECT SUM(SubjectScore) AS SCore,TestRecordId FROM Training_TestRecordItem
GROUP BY TestRecordId) item
where Training_TestRecord.TestRecordId=item.TestRecordId AND Training_TestRecord.TestEndTime IS NOT NULL
AND item.SCore != Training_TestRecord.TestScores AND item.SCore IS NOT NULL
GO