Administrator
2024-05-28 9ad36b2b910aa15e45d5fb40b7e39d8d887a7cb7
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
package com.dy.pipIrrGlobal.daoPr;
 
 
import com.dy.pipIrrGlobal.pojoPr.PrIntake;
import com.dy.pipIrrGlobal.voPr.VoIntake;
import com.dy.pipIrrGlobal.voPr.VoOnLineIntake;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
/**
 * @author wuzeyu
 * @date 2023/12/26 13:56
 * @LastEditTime 2023/12/26 13:56
 * @Description
 */
@Mapper
public interface PrIntakeMapper {
 
    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    PrIntake selectByPrimaryKey(Long id);
 
    /**
     * 得到全部实体
     * @return 全部实体
     * */
    List<PrIntake> selectAll();
 
    /**
     * 逻辑删除
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteLogicById(Long id);
 
    /**
     * 实际删除
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long id);
 
    int insert(PrIntake record);
 
    int insertSelective(PrIntake record);
 
    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(PrIntake record);
 
    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(PrIntake record);
 
    /**
     * 根据指定条件获取取水口记录数
     * @param params
     * @return
     */
    Long getRecordCount(Map<?, ?> params);
 
    /**
     * 根据指定条件获取取水口记录
     * @param params
     * @return
     */
    List<VoIntake> getIntakes(Map<?, ?> params);
 
    /**
     * 根据下级Id获取上一级地址Id
     * @param vaId 下一级Id
     * @return
     */
    Long getSupperByVillageId(long vaId);
 
    /**
     * 根据取水口编号获取未删除的取水口数量
     * @param intakeId
     * @return  address
     */
    Integer getRecordCountOfIntake(@Param("intakeId") Long intakeId);
 
    /**
     * 根据村Id获取全部地址
     * @param villageId 村Id
     * @return  address  全部五级地址
     */
    String getAddressByVillageId(long villageId);
 
    /**
     * 根据区域Id获取区域等级
     * @param regionId 区域Id
     * @return  Level  区域等级
     */
    Integer getLevelByRegionId(long regionId);
 
    /**
     * 获取未绑控制器的取水口列表
     * @return
     */
    List<Map<String, Object>> getNoBindingIntakes();
 
    /**
     * 获取取水口数量(在线和不在线)
     * @param params
     * @return
     */
    Long getOnLineIntakesCount(Map<?, ?> params);
 
    /**
     * 获取取水口列表(在线和不在线)
     * @param params
     * @return
     */
    //List<VoOnLineIntake> getOnLineIntakes(@Param("onLineMap") String onLineMap, @Param("isOnLine") Boolean isOnLine);
    List<VoOnLineIntake> getOnLineIntakes(Map<?, ?> params);
}