20220926
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
--修复试卷统计与成绩不符
|
||||
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