Commit 44ffe959 authored by 王淑君's avatar 王淑君

修改

parent 32c69808
......@@ -118,6 +118,7 @@ public class BLessonPersonServiceImpl implements BLessonPersonService {
@Override
public PersistModel addMyLearnLesson(AddMyLearnLessonDTO addMyLearnLessonDTO) {
List<BLessonPerson> bLessonPersons = bLessonPersonRepository.selectByPersonAndLesson(addMyLearnLessonDTO);
BLessonPerson bLessonPerson;
int line = 0;
......@@ -136,6 +137,8 @@ public class BLessonPersonServiceImpl implements BLessonPersonService {
line = bLessonPersonRepository.insertBLessonPerson(bLessonPerson);
//课程在学人数+1
bLessonRepository.personNumberPlusOne(addMyLearnLessonDTO.getLessonId());
}else if (bLessonPersons != null && bLessonPersons.size()>0){
line = 1;
}
return new PersistModel(line);
}
......
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