提升系统稳定性

This commit is contained in:
none
2023-03-30 09:30:59 +08:00
parent fe88aca839
commit 02b5be2705
2 changed files with 4 additions and 3 deletions

View File

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