20220717 pagebase
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user