|
@@ -127,15 +127,12 @@ public class BasicStudentServiceImpl extends ServiceImpl<BasicStudentMapper, Bas
|
|
List<BasicStudent> willDeleteStudent = this.list(basicStudentQueryWrapper);
|
|
List<BasicStudent> willDeleteStudent = this.list(basicStudentQueryWrapper);
|
|
|
|
|
|
// 删除基础学生
|
|
// 删除基础学生
|
|
- if (willDeleteStudent.size() > 0){
|
|
|
|
- this.removeByIds(willDeleteStudent);
|
|
|
|
- // 同步删除教学学生
|
|
|
|
|
|
+ if (willDeleteStudent.size() > 0) {
|
|
Set<Long> idSet = willDeleteStudent.stream().map(BaseEntity::getId).collect(Collectors.toSet());
|
|
Set<Long> idSet = willDeleteStudent.stream().map(BaseEntity::getId).collect(Collectors.toSet());
|
|
- if (idSet.size() > 0){
|
|
|
|
- this.baseMapper.deleteTeachStudentByBasicStudentIdSet(idSet);
|
|
|
|
- }
|
|
|
|
|
|
+ this.removeByIds(idSet);
|
|
|
|
+ // 同步删除教学学生
|
|
|
|
+ this.baseMapper.deleteTeachStudentByBasicStudentIdSet(idSet);
|
|
}
|
|
}
|
|
-
|
|
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|