feat: 补充可能出现的情况

This commit is contained in:
2025-07-06 12:27:04 +08:00
parent 939e15ee56
commit 063f70f1e7
@@ -97,8 +97,10 @@ public class StudySessionsEntity extends BaseEntity implements Serializable {
if (this.getSessionState().equals(StudySessionStateEnum.PAUSED.name())){
this.setSessionState(StudySessionStateEnum.ONGOING.name());
this.setLastStartTime(LocalDateTime.now());
}else{
log.warn("不应出现的情况:开始了一个状态为【{}】的学习会话",this.getSessionState());
} else if (this.getSessionState().equals(StudySessionStateEnum.ONGOING.name())) {
log.info("进行中的学习会话({})被重新获取",this.getSessionNum());
} else{
log.warn("不应出现的情况:开始了一个状态为【{}】的学习会话({})",this.getSessionState(),this.getSessionNum());
}
}