|
|
@ -114,9 +114,6 @@ public class PCQuestionBiz {
|
|
|
|
if (!StringUtils.hasText(questionVO.getStem())) {
|
|
|
|
if (!StringUtils.hasText(questionVO.getStem())) {
|
|
|
|
return Result.error("题干不能为空");
|
|
|
|
return Result.error("题干不能为空");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!StringUtils.hasText(questionVO.getAnalysis())) {
|
|
|
|
|
|
|
|
return Result.error("解析不能为空");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (questionVO.getAnswerId() == null || questionVO.getAnswerId().size() <= 0) {
|
|
|
|
if (questionVO.getAnswerId() == null || questionVO.getAnswerId().size() <= 0) {
|
|
|
|
return Result.error("答案不能为空");
|
|
|
|
return Result.error("答案不能为空");
|
|
|
@ -126,8 +123,7 @@ public class PCQuestionBiz {
|
|
|
|
return Result.error("请选择课程");
|
|
|
|
return Result.error("请选择课程");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (questionVO.getLevelId() == null) {
|
|
|
|
if (questionVO.getLevelId() == null || questionVO.getLevelId() <= 0) {
|
|
|
|
|
|
|
|
return Result.error("请选择课程层次");
|
|
|
|
return Result.error("请选择课程层次");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|