hjl
2024-07-26 f8cc44e926fd22f9d1d864dc684c827f6960270b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.ruoyi.admin.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.admin.entity.User;
import com.ruoyi.admin.vo.UserTrendsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
/**
 * <p>
 * 用户列表 Mapper 接口
 * </p>
 *
 * @author hjl
 * @since 2024-05-29
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
 
    /**
     * 获取用户增量趋势
     *
     * @param city 城市id集合
     * @return 折线图数据
     */
    List<UserTrendsVO> userTrends(@Param("city") List<String> city);
 
    /**
     * 统计本年度,注册用户数量
     *
     * @param cityList 城市集合
     * @return 注册用户数量
     */
    Long increaseNumberByYear(@Param("cityList") List<String> cityList);
 
    /**
     * 统计本月,注册用户数量
     *
     * @param cityList 城市列表
     * @return 注册用户数量
     */
    Long increaseNumberByMonth(@Param("cityList") List<String> cityList);
 
}