mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-07-23 17:49:34 +08:00
提升系统稳定性
This commit is contained in:
parent
fe88aca839
commit
02b5be2705
@ -139,8 +139,8 @@ public class UserController {
|
||||
int nunRequiredHourCount = 0;//选修课时
|
||||
int requiredFinishedHourCount = 0;//已完成必修课时
|
||||
int nunRequiredFinishedHourCount = 0;//已完成选修课时
|
||||
int todayLearnDuration = userLearnDurationStatsService.todayUserDuration(FCtx.getId());//今日学习时长
|
||||
int learnDuration = userLearnDurationStatsService.userDuration(FCtx.getId());//学习总时长
|
||||
Integer todayLearnDuration = userLearnDurationStatsService.todayUserDuration(FCtx.getId());//今日学习时长
|
||||
Integer learnDuration = userLearnDurationStatsService.userDuration(FCtx.getId());//学习总时长
|
||||
|
||||
// -------- 学习数据统计 ----------
|
||||
if (courses.size() > 0) {
|
||||
|
@ -80,7 +80,8 @@ public class UserLearnDurationStatsServiceImpl extends ServiceImpl<UserLearnDura
|
||||
|
||||
@Override
|
||||
public Integer userDuration(Integer userId) {
|
||||
return getBaseMapper().getUserDuration(userId);
|
||||
Integer totalDuration = getBaseMapper().getUserDuration(userId);
|
||||
return totalDuration == null ? 0 : totalDuration;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user