feat: 补充可能出现的情况
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user