Commit b1da7d55 authored by luzhuang's avatar luzhuang

培训无讲师异常

parent b6e29372
......@@ -136,6 +136,9 @@ public class BDiscussServiceImpl implements BDiscussService {
if(bLesson == null){
throw new ServiceException(ResultServiceEnums.LESSON_NOT_EXISTA);
}
if(StringUtils.isEmpty(bLesson.getLecturerId())){
throw new ServiceException(ResultServiceEnums.NO_LECTURE);
}
bNotice.setRecipientIds(new ArrayList<>(Arrays.asList(bLesson.getLecturerId())));
String lessonType = LessonTypeEnum.LESSON.getCode().equals(bLesson.getLessonType()) ? "线上课程" : "线下培训";
String urlType = LessonTypeEnum.LESSON.getCode().equals(bLesson.getLessonType()) ? UrlTypeEnum.LESSON.getName() : UrlTypeEnum.TRAIN.getName();
......
......@@ -260,6 +260,7 @@ public enum ResultServiceEnums {
VALUE_HAVE_ERROR(160,"积分异常,请联系管理员"),
NOT_DOWNLOAD_FILE(161,"无下载文件"),
ZHIXIN_ERROR(162,"调用智信接口异常"),
NO_LECTURE(163,"当前培训无讲师"),
;
private Integer code;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment