考试优化
This commit is contained in:
@@ -354,6 +354,7 @@ namespace WebAPI.Controllers
|
||||
}
|
||||
else
|
||||
{
|
||||
//ErrLogInfo.WriteLog($"【考试交卷后记分】testRecordId:{testRecordId};");
|
||||
//记分
|
||||
ScoreFlowLogService.HseScoring(testRecordId);
|
||||
APITestRecordService.updateAll(getTestRecord.TestPlanId);
|
||||
@@ -383,6 +384,7 @@ namespace WebAPI.Controllers
|
||||
string Signature = testRecordItem.Signature;
|
||||
string Fingerprint = testRecordItem.Fingerprint;
|
||||
var responeData = new Model.ResponeData();
|
||||
//ErrLogInfo.WriteLog($"【交卷】testRecordId:{testRecordId};");
|
||||
try
|
||||
{
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
@@ -465,6 +467,7 @@ namespace WebAPI.Controllers
|
||||
}
|
||||
else
|
||||
{
|
||||
//ErrLogInfo.WriteLog($"【考试交卷后记分2】testRecordId:{testRecordId};");
|
||||
//记分
|
||||
ScoreFlowLogService.HseScoring(testRecordId);
|
||||
APITestRecordService.updateAll(getTestRecord.TestPlanId);
|
||||
@@ -474,6 +477,14 @@ namespace WebAPI.Controllers
|
||||
}
|
||||
else
|
||||
{
|
||||
if (getTestScores >= getPassScores)
|
||||
{
|
||||
//ErrLogInfo.WriteLog($"【考试交卷后记分2.2】testRecordId:{testRecordId};");
|
||||
//记分
|
||||
ScoreFlowLogService.HseScoring(testRecordId);
|
||||
//关闭培训任务
|
||||
APITrainingTaskService.UpdatePersonTask(getTestRecord.TestRecordId, getTestRecord.CompanyTrainingItemId, getTestRecord.ProjectId, getTestRecord.TestManId);
|
||||
}
|
||||
responeData.data = new { getTestScores, getPassScores };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user