blob: 2f82cb9e3c6399c4556666f7ad30e4b705d24fed [file] [log] [blame]
刘嘉昕92bb2902025-06-09 10:35:27 +08001package com.pt5.pthouduan.mapper;
2
3import com.pt5.pthouduan.entity.UserTrafficStat;
4import org.apache.ibatis.annotations.Mapper;
5import org.apache.ibatis.annotations.Param;
6
7import java.time.LocalDate;
8import java.util.List;
9
10@Mapper
11public interface UserTrafficMapper {
12 /**
13 * 查询指定用户在指定时间范围内的上传和下载量(按月统计)
14 * @param passkey 用户唯一标识
15 * @param startDate 开始时间
16 * @param endDate 结束时间
17 * @return 该用户的月度统计
18 */
19 UserTrafficStat getUserTrafficStats(
20 @Param("passkey") String passkey,
21 @Param("startDate") LocalDate startDate,
22 @Param("endDate") LocalDate endDate);
23}