|
|
@ -1328,7 +1328,7 @@ WHERE A.Id = '{id}'"; |
|
|
|
#endregion |
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
#region 记录学习时长 |
|
|
|
#region 记录学习时长 |
|
|
|
public async Task<ServiceResult> RecordDuration(long studyRecordId, decimal? duration) |
|
|
|
public async Task<ServiceResult> RecordDuration(long studyRecordId, decimal? duration, long attachmentId) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var staffId = GetStaffId(); |
|
|
|
var staffId = GetStaffId(); |
|
|
|
var sql = $"UPDATE Ghre_StudyRecord SET StudyDuration = ISNULL(StudyDuration, 0)+{duration} WHERE Id='{studyRecordId}' AND StaffId='{staffId}'"; |
|
|
|
var sql = $"UPDATE Ghre_StudyRecord SET StudyDuration = ISNULL(StudyDuration, 0)+{duration} WHERE Id='{studyRecordId}' AND StaffId='{staffId}'"; |
|
|
@ -1363,6 +1363,10 @@ WHERE A.Id = '{id}'"; |
|
|
|
studyProgress = 100; |
|
|
|
studyProgress = 100; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 判断所以附件 是否都被打开 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
var studyStatus = DIC_STUDY_RECORD_STUDY_STATUS.NO_FINISH; |
|
|
|
var studyStatus = DIC_STUDY_RECORD_STUDY_STATUS.NO_FINISH; |
|
|
|
if (studyProgress == 100) |
|
|
|
if (studyProgress == 100) |
|
|
|
studyStatus = DIC_STUDY_RECORD_STUDY_STATUS.HAS_FINISH; |
|
|
|
studyStatus = DIC_STUDY_RECORD_STUDY_STATUS.HAS_FINISH; |
|
|
|