|
@@ -73,7 +73,7 @@ public class StudentCourseHomeworkServiceImpl extends BaseServiceImpl<Long, Stud
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public int update(StudentCourseHomework bean) {
|
|
|
- if(Objects.isNull(bean)){
|
|
|
+ if(Objects.isNull(bean)||Objects.isNull(bean.getId())){
|
|
|
throw new BizException("作业不存在");
|
|
|
}
|
|
|
super.update(bean);
|