liuxiaolong
2019-05-06 71af9c46c24b562acc00a71ec6c97c04eb048d9c
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
package com.cloud.device.dao;
 
import com.cloud.device.model.Node;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
 
import java.util.List;
 
@Repository
@Mapper
public interface NodeDao {
    /**
     * 删除
     * @param id
     * @return
     */
    int deleteById(String id);
 
    /**
     * 插入所有字段
     * @param record
     * @return
     */
    int insert(Node record);
 
    /**
     * 插入某些字段
     * @param record
     * @return
     */
    int insertSelective(Node record);
 
    /**
     * 获取一条数据
     * @param id
     * @return
     */
    Node selectById(String id);
 
 
    /**
     * 更新
     * @param record
     * @return
     */
    int updateById(Node record);
 
    int updateByIdSelective(Node record);
 
    /**
     * 根据集群id获取节点id
     * @param clusterId
     * @return
     */
    List<Node> findByClusterId(String clusterId);
 
    Node getNodeByDevId(String devId);
}