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
package com.dy.pipIrrGlobal.daoPr;
 
import com.dy.pipIrrGlobal.pojoPr.PrFlowmeter;
import com.dy.pipIrrGlobal.pojoPr.PrIntake;
import com.dy.pipIrrGlobal.voPr.VoFlowMeter;
import com.dy.pipIrrGlobal.voPr.VoFlowMonitoring;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
/**
 * @author ZhuBaoMin
 * @date 2024-01-05 9:04
 * @LastEditTime 2024-01-05 9:04
 * @Description
 */
public interface PrFlowmeterMapper {
    int deleteByPrimaryKey(Long id);
 
    int insert(PrFlowmeter record);
 
    int insertSelective(PrFlowmeter record);
 
    PrFlowmeter selectByPrimaryKey(Long id);
 
    int updateByPrimaryKeySelective(PrFlowmeter record);
 
    int updateByPrimaryKey(PrFlowmeter record);
 
    /**
     * 据编号删除流量计
     * @param flowmeterId
     * @return
     */
    Integer deleteFlowmeterById(@Param("flowmeterId") Long flowmeterId);
 
    /**
     * 根据流量计编号获取未删除的流量计数量
     * @param flowmeterId
     * @return
     */
    Integer getRecordCountOfFlowmeterByCode(@Param("flowmeterId") Long flowmeterId);
 
    /**
     * 根据流量计 编号 在线状态 获取未删除的流量计数量
     *
     * @param params
     * @return
     */
    Integer getRecordCountOfFlowMeterByOthers(Map<?, ?> params);
 
    /**
     * 根据指定条件获取流量计实体记录
     *
     * @param params
     * @return 实体集合
     */
    List<VoFlowMeter> getFlowMeters(Map<?, ?> params);
 
    /**
     * 得到全部实体
     * @return 全部实体
     * */
    List<PrFlowmeter> selectAll();
}