|
|
@@ -7,7 +7,11 @@ import com.usoftchina.smartschool.school.dto.DocBaseDTO;
|
|
|
import com.usoftchina.smartschool.school.exception.BizExceptionCode;
|
|
|
import com.usoftchina.smartschool.school.mapper.SysClazzMapper;
|
|
|
import com.usoftchina.smartschool.school.mapper.SysStudentMapper;
|
|
|
-import com.usoftchina.smartschool.school.po.*;
|
|
|
+import com.usoftchina.smartschool.school.mapper.SysTeacherMapper;
|
|
|
+import com.usoftchina.smartschool.school.po.ClassForm;
|
|
|
+import com.usoftchina.smartschool.school.po.SysClazz;
|
|
|
+import com.usoftchina.smartschool.school.po.SysStudent;
|
|
|
+import com.usoftchina.smartschool.school.po.SysTeacherClazz;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
@@ -26,6 +30,8 @@ public class ClassServiceImpl implements ClassService{
|
|
|
private SysClazzMapper sysClazzMapper;
|
|
|
@Autowired
|
|
|
private SysStudentMapper sysStudentMapper;
|
|
|
+ @Autowired
|
|
|
+ private SysTeacherMapper sysTeacherMapper;
|
|
|
|
|
|
@Override
|
|
|
public ClassForm getFormdata(Long id) {
|
|
|
@@ -125,4 +131,9 @@ public class ClassServiceImpl implements ClassService{
|
|
|
sysClazzMapper.deleteByPrimaryKey(id);
|
|
|
sysStudentMapper.deleteTeacher(id);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void deleteDetail(Long id) {
|
|
|
+ sysTeacherMapper.deleteDetail(id);
|
|
|
+ }
|
|
|
}
|