mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 20:35:35 +08:00
后台新增学员的最近一个月的学习统计api
This commit is contained in:
@@ -38,4 +38,6 @@ public interface UserLearnDurationStatsService extends IService<UserLearnDuratio
|
||||
Long todayUserDuration(Integer userId);
|
||||
|
||||
Long userDuration(Integer userId);
|
||||
|
||||
List<UserLearnDurationStats> dateBetween(Integer userId, String startAt, String endAt);
|
||||
}
|
||||
|
||||
@@ -109,4 +109,10 @@ public class UserLearnDurationStatsServiceImpl
|
||||
Long totalDuration = getBaseMapper().getUserDuration(userId);
|
||||
return totalDuration == null ? 0L : totalDuration;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UserLearnDurationStats> dateBetween(Integer userId, String startAt, String endAt) {
|
||||
return list(
|
||||
query().getWrapper().eq("user_id", userId).between("created_date", startAt, endAt));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user