提交 2a5d47c7 authored 作者: zhouzhigang's avatar zhouzhigang

--no commit message

上级 0faa185d
......@@ -732,15 +732,14 @@ public class FgPublicLessonServiceImpl extends BaseModelServiceImpl<PublicLesson
if (StringUtils.isBlank(form.getCourseDesign())) {
return true;
}
if (oldEntity != null && form.getCourseDesign().equals(oldEntity.getCourseDesign())) {
return true;
}
// if (oldEntity != null && form.getCourseDesign().equals(oldEntity.getCourseDesign())) {
// return true;
// }
//同一基础教学计划下面不能出现相同的课程
if(PublicLessonClassArrangeRealtionTypeEnum.BASIC.getCode().equals(form.getLessonType())) {//基础课
log.info("这里是基础课===============================================");
//根据基础教学计划id查询
BasicTeachingPlan basicTeachingPlan = fgBasicTeachingPlanMapper.selectByPrimaryKey(form.getBasicPlanId());
log.info("planId============================================================" + form.getBasicPlanId());
PublicLesson s = new PublicLesson();
s.setCourseDesign(form.getCourseDesign());
s.setRelationId(redis.getMember().getRelationId());
......@@ -763,9 +762,7 @@ public class FgPublicLessonServiceImpl extends BaseModelServiceImpl<PublicLesson
}
}
if(PublicLessonClassArrangeRealtionTypeEnum.PUBLIC.getCode().equals(form.getLessonType())){//公共课
log.info("这里是公共课===============================================");
form.getBtps().forEach(vo ->{
log.info("基础教学计划id:==================================================" + vo);
BasicTeachingPlan basicTeachingPlan = fgBasicTeachingPlanMapper.selectByPrimaryKey(vo);
PublicLesson s = new PublicLesson();
s.setRelationId(redis.getMember().getRelationId());
......@@ -774,8 +771,6 @@ public class FgPublicLessonServiceImpl extends BaseModelServiceImpl<PublicLesson
List<PublicLesson> list = fgPublicLessonMapper.select(s);
if(list != null && list.size() > 0) {
for (PublicLesson publicLesson : list) {
log.info("这里是公共课publicLesson名称===============================================" + publicLesson.getCourseDesign());
log.info("这里是公共课form名称===============================================" + form.getCourseDesign());
if(form.getCourseDesign().equals(publicLesson.getCourseDesign())) {
log.info("FgPublicLessonServiceImpl#isExistName name: "+ form.getCourseDesign() +"课程名称已存在");
throw new BusinessValidateException("基础教学计划:" + basicTeachingPlan.getName() + "下已存在" + "课程名称: "+ form.getCourseDesign());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论