|
@@ -75,8 +75,8 @@ public class StudentStarServiceImpl extends ServiceImpl<StudentStarDao, StudentS
|
|
|
studentTotal.setStarTeacherNum(studentTotal.getStarTeacherNum() > 0 ? (studentTotal.getStarTeacherNum() - 1) : 0);
|
|
|
teacherTotal.setFansNum(teacherTotal.getFansNum() > 0 ? (teacherTotal.getFansNum() - 1) : 0);
|
|
|
}
|
|
|
- studentTotalService.updateTotalCache(studentTotal);
|
|
|
- teacherTotalService.updateTotalCache(teacherTotal);
|
|
|
+ studentTotalService.totalStudentTotalById(studentId);
|
|
|
+ teacherTotalService.totalTeacherTotalById(teacherId);
|
|
|
return HttpResponseResult.succeed(true);
|
|
|
}
|
|
|
|