|
@@ -729,6 +729,8 @@ public class XzService {
|
729
|
729
|
List<XzClassVo> classlst = classMapper.listClassByXzid(schoolid, gradeid);
|
730
|
730
|
String classids = classlst.stream().map((XzClassVo::getClassid)).map(String::valueOf).collect(Collectors.joining(","));
|
731
|
731
|
List<CTeacherVo> teachers = classTeacherMapper.listTeacherByClassIds(classids);//获取班级教师
|
|
732
|
+ if(!N_Utils.isListNotEmpty(teachers)) return new ResultVo(1,"请设置班级任教老师");
|
|
733
|
+
|
732
|
734
|
String teacherids = teachers.stream().map((CTeacherVo::getTeacherid)).map(String::valueOf).collect(Collectors.joining(","));
|
733
|
735
|
List<CTeacherVo> subjects = classTeacherMapper.listSubjectByTeacherIds(teacherids);//获取教师科目
|
734
|
736
|
String subjectids = subjects.stream().map(CTeacherVo::getSubjectid).distinct().collect(Collectors.joining("','"));
|