处理study接口,studyitemid返回值为空的问题

This commit is contained in:
zhaolongfei
2024-08-15 20:19:27 +08:00
parent 731e62c89f
commit df3b0b95c1

View File

@@ -101,7 +101,7 @@ public class StudyServiceImpl implements IStudyService{
if (sci.getId() != null){ if (sci.getId() != null){
dto.setStudyItemId(sci.getId()); dto.setStudyItemId(sci.getId());
}else { }else {
log.info("学习记录id不能为空"+sci.getId()); log.info("学习记录插入失败"+sci.getId());
throw new IllegalArgumentException("学习记录插入失败"); throw new IllegalArgumentException("学习记录插入失败");
} }
//检查是否全部学习完成 //检查是否全部学习完成