You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dsl3/mapper/UniqueViewMapper.java

20 lines
1.3 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.aurora.mapper;
import com.aurora.model.dto.UniqueViewDTO;// 导入独立访客数据传输对象UniqueViewDTO用于前台数据展示通常包含统计结果
import com.aurora.entity.UniqueView;// 导入独立访客实体类UniqueView该实体类与数据库中的独立访客统计表如 unique_view相对应
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.Date;// 导入 Java 的 Date 类,用于处理时间范围参数
import java.util.List;// 导入 Java 集合框架中的 List 接口,用于返回多个 UniqueViewDTO 对象的集合
@Repository
public interface UniqueViewMapper extends BaseMapper<UniqueView> {
// 自定义查询方法:根据时间范围查询独立访客统计列表(通常用于图表展示或数据分析)
// startTime: 统计开始时间endTime: 统计结束时间用于限定查询的时间范围如查询某一天的UV数据
// 返回 UniqueViewDTO 列表,每个对象可能包含统计时间点(如日期)和对应的独立访客数量
List<UniqueViewDTO> listUniqueViews(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
}