Browse Source

Merge branch 'feature/0822_logoff' into test

liujc 2 days ago
parent
commit
cc24b8fd9a

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