在线追加课程的学习时长修改最后学习时间

This commit is contained in:
zhaolongfei
2024-05-11 23:14:26 +08:00
parent fa51f2bb7b
commit 8d673a05eb

View File

@@ -129,7 +129,7 @@ public class StudyServiceImpl implements IStudyService{
//追加课程的学习时长
//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";
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),last_time = "+LocalDateTime.now()+" where id=?1";
scDao.sqlUpdate(sql,studyId);
}