liuxiaolong
2019-05-06 a7bed6b4cfecd61ec153818945f982c5bb796b98
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
package com.cloud.attendance.dao;
 
import com.cloud.attendance.model.AttRule;
import lombok.Data;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
 
/**
 * @author lp
 */
@Repository
@Mapper
public interface AttRuleDao {
    /**
     * 根据主键删除
     * @param id 主键
     * @return
     */
    int deleteById(Integer id);
 
    /**
     * 添加规则(全字段)
     * @param record
     * @return
     */
    int save(AttRule record);
 
    /**
     * 添加规则(部分字段)
     * @param record
     * @return
     */
    int saveSelective(AttRule record);
 
    /**
     * 根据主键查询规则
     * @param id
     * @return
     */
    AttRule selectById(Integer id);
 
    /**
     * 查询最新可用规则  wp
     * @return
     */
    public AttRule selectAttRule();
 
    /**
     * 根据主键修改(部分字段)
     * @param record
     * @return
     */
    int updateByIdSelective(AttRule record);
 
    /**
     * 根据主键修改(全字段)
     * @param record
     * @return
     */
    int updateById(AttRule record);
}