|
@@ -164,6 +164,9 @@ public class ExamServiceImpl extends ServiceImpl<ExamMapper, Exam> implements IE
|
|
@Override
|
|
@Override
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public Boolean updateByEditBo(ExamEditBo bo) {
|
|
public Boolean updateByEditBo(ExamEditBo bo) {
|
|
|
|
+ if(Validator.isEmpty(bo.getExamId())){
|
|
|
|
+ throw new CustomException("试卷ID缺失");
|
|
|
|
+ }
|
|
Exam update = BeanUtil.toBean(bo, Exam.class);
|
|
Exam update = BeanUtil.toBean(bo, Exam.class);
|
|
validEntityBeforeSave(update);
|
|
validEntityBeforeSave(update);
|
|
update.setUpdateTime(DateUtils.getNowTime());
|
|
update.setUpdateTime(DateUtils.getNowTime());
|