leutu
2024-06-03 3ef35e6cd16bbfa206b26bb3271eac40ad020bcb
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
package com.fastbee.iot.mapper;
 
import com.fastbee.iot.domain.Protocol;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
 
import java.util.List;
 
/**
 * 协议管理Mapper
 * @author gsb
 * @date 2022/10/19 15:46
 */
@Repository
public interface ProtocolMapper {
 
 
    /**
     * 查询协议
     *
     * @param id 协议主键
     * @return 协议
     */
    public Protocol selectProtocolById(Long id);
 
    /**
     * 查询协议列表
     *
     * @param protocol 协议
     * @return 协议集合
     */
    public List<Protocol> selectProtocolList(Protocol protocol);
 
    /**
     * 新增协议
     *
     * @param protocol 协议
     * @return 结果
     */
    public int insertProtocol(Protocol protocol);
 
    /**
     * 修改协议
     *
     * @param protocol 协议
     * @return 结果
     */
    public int updateProtocol(Protocol protocol);
 
    /**
     * 删除协议
     *
     * @param id 协议主键
     * @return 结果
     */
    public int deleteProtocolById(Long id);
 
    /**
     * 批量删除协议
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteProtocolByIds(Long[] ids);
 
    /**
     * 获取所有唯一协议
     * @param protocol
     * @return
     */
   public List<Protocol> selectByUnion(Protocol protocol);
 
    /**
     * 获取所有可用协议
     * @param status
     * @param delFlag
     * @return
     */
   public List<Protocol> selectAll(@Param("status") Integer status, @Param("delFlag") Integer delFlag);
}