|
|
@@ -46,7 +46,6 @@ public class TeacherServiceImpl implements TeacherService{
|
|
|
if(condition == null){
|
|
|
condition = "1=1";
|
|
|
}
|
|
|
- schoolId = 1l;
|
|
|
List<SysTeacher> teacherList = sysTeacherMapper.selectByConditon(condition, schoolId);
|
|
|
PageInfo<SysTeacher> list = new PageInfo<>(teacherList);
|
|
|
return list;
|
|
|
@@ -71,7 +70,6 @@ public class TeacherServiceImpl implements TeacherService{
|
|
|
throw new BizException(BizExceptionCode.EMPTY_DATA);
|
|
|
}
|
|
|
Long school_id = BaseContextHolder.getSchoolId();
|
|
|
- school_id = 1l;
|
|
|
formdata.setSchool_id(school_id);
|
|
|
formdata.setTeacher_status(1);
|
|
|
//新增教师
|
|
|
@@ -114,6 +112,7 @@ public class TeacherServiceImpl implements TeacherService{
|
|
|
teacher.setSchool_id(schoolId);
|
|
|
teacher.setTeacher_status(1);
|
|
|
sysTeacherMapper.insertSelective(teacher);
|
|
|
+ teachers.add(teacher);
|
|
|
//年纪存在、需要更新
|
|
|
} else if (update){
|
|
|
teacher.setSchool_id(schoolId);
|