刘嘉昕 | 92bb290 | 2025-06-09 10:35:27 +0800 | [diff] [blame^] | 1 | package com.pt5.pthouduan.mapper; |
| 2 | |
| 3 | import com.pt5.pthouduan.entity.UserTrafficStat; |
| 4 | import org.apache.ibatis.annotations.Mapper; |
| 5 | import org.apache.ibatis.annotations.Param; |
| 6 | |
| 7 | import java.time.LocalDate; |
| 8 | import java.util.List; |
| 9 | |
| 10 | @Mapper |
| 11 | public 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 | } |