zhubaomin
2025-04-09 80e22bcc7af8aebed7443965655542fbe4966708
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
package com.dy.pipIrrGlobal.daoSe;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.pipIrrGlobal.pojoSe.SeClient;
import com.dy.pipIrrGlobal.voSe.VoClient;
import com.dy.pipIrrGlobal.voSe.VoClientWechat;
import com.dy.pipIrrGlobal.voSt.VoCardUsage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
/**
 * @author ZhuBaoMin
 * @date 2023-12-26 10:32
 * @LastEditTime 2023-12-26 10:32
 * @Description
 */
 
@Mapper
public interface SeClientMapper extends BaseMapper<SeClient> {
    int deleteByPrimaryKey(Long id);
 
    int insert(SeClient record);
 
    int insertSelective(SeClient record);
 
    SeClient selectByPrimaryKey(Long id);
 
    int updateByPrimaryKeySelective(SeClient record);
 
    int updateByPrimaryKey(SeClient record);
 
    /**
     * 根据6位区划串模糊查询农户编号
     * @param district8
     * @return
     */
    String getClientNumOfMax(@Param("district8") String district8);
 
    /**
     * 根据农户编号获取5级行政区划代码
     * @param clientNum 农户编号
     * @return 5级行政区划代码
     */
    Long getAreaCodeByNum(@Param("clientNum") String clientNum);
 
    /**
     * 根据农户编号获取5级行政区划串areaCode,补卡过程中开新卡使用
     * @param clientId
     * @return
     */
    Long getAreaCodeById(@Param("clientId") Long clientId);
 
    /**
     * 根据农户编号获取农户ID
     * @param clientNum
     * @return
     */
    Long getClientIdByNum(@Param("clientNum") String clientNum);
 
    /**
     * 根据电话号码获取农户ID
     * @param phoneNumber
     * @return
     */
    Long getClientIdByPhone(String phoneNumber);
 
    /**
     * 根据指定条件获取农户记录数
     * @param params
     * @return
     */
    List<VoClient> getRecordCount(Map<?, ?> params);
 
    /**
     * 根据指定条件获取农户数据
     * @param params
     * @return
     */
    List<VoClient> getClients(Map<?, ?> params);
 
    /**
     * 根据农户ID逻辑删除农户
     * @param id 农户ID
     * @return 逻辑删除记录数
     */
    Integer deleteClientById(@Param("id") Long id);
 
    /**
     * 根据主键获取村ID
     * @param id 农户ID
     * @return 村主键
     */
    Long getVillageIdById(@Param("id") Long id);
 
    /**
     * 获取虚拟卡号最大值
     * @return
     */
    Long getMa1xVirtualId();
 
    /**
     * 获取用水方式列表
     * @return
     */
    List<Map<String, Object>> getWaterTypes();
 
    /**
     * 获取农户基本信息,小程序首页使用
     * @param sessionId
     * @return
     */
    VoClientWechat getSimpleClientInfo(@Param("sessionId") Long sessionId, @Param("openId") String openId);
 
    /**
     * 获取指定时间段农户:充值合计、消费合计、余额
     * @param params
     * @return
     */
    Long getClientUsagesCount(Map<String, Object> params);
 
    /**
     * 获取指定时间段农户:充值合计、消费合计、余额
     * @param params
     * @return
     */
    List<VoCardUsage> getClientUsages(Map<String, Object> params);
}