liujc 1 month ago
parent
commit
fec1bba2b6

+ 2 - 2
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/StudentStarServiceImpl.java

@@ -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);
     }