提交Scorm课件学习状态的修改

This commit is contained in:
daihh
2023-04-06 16:13:27 +08:00
parent 304d6b1129
commit 2a2b508fc8

View File

@@ -126,7 +126,10 @@ public class StudyServiceImpl implements IStudyService{
}
//追加课程的学习时长
scDao.updateMultiFieldById(studyId, UpdateBuilder.create("totalDuration", "totalDuration+"+duration,FieldUpdateType.EXPRESSION));
//scDao.updateMultiFieldById(studyId, UpdateBuilder.create("totalDuration", "totalDuration+"+duration,FieldUpdateType.EXPRESSION));
String sql="Update boe_study_course set total_duration=total_duration+"+duration+",status=(case when status<2 then 2 else status end),progress=(case when progress=0 then 1 else progress end) where id=?1";
scDao.sqlUpdate(sql,studyId);
}