|
@@ -194,6 +194,12 @@ public class TeacherServiceImpl extends ServiceImpl<TeacherDao, Teacher> impleme
|
|
|
@Autowired
|
|
|
private VipCardRecordService vipCardRecordService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TeacherTotalService teacherTotalService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private StudentTotalService studentTotalService;
|
|
|
+
|
|
|
@Override
|
|
|
public TeacherDao getDao() {
|
|
|
return baseMapper;
|
|
@@ -1617,4 +1623,12 @@ public class TeacherServiceImpl extends ServiceImpl<TeacherDao, Teacher> impleme
|
|
|
|
|
|
return imCustomerServiceId;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public void delFans(Long studentId, Long teacherId) {
|
|
|
+ studentStarDao.delFans(studentId,teacherId);
|
|
|
+ teacherTotalService.totalTeacherTotalById(teacherId);
|
|
|
+ studentTotalService.totalStudentTotalById(studentId);
|
|
|
+ }
|
|
|
}
|