admin
2019-09-03 be19444704d40195c1355e471f1316f7419b930b
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
package com.yeshi.fanli.service.inter.lable;
 
 
 
import org.springframework.cache.annotation.Cacheable;
 
import com.yeshi.fanli.entity.bus.lable.MergeClass;
import com.yeshi.fanli.exception.goods.MergeClassException;
 
public interface MergeClassService {
    
    /**
     * 插入对象
     * @param record
     * @return
     * @throws MergeClassException
     */
    public int insert(MergeClass record) throws MergeClassException;
    
    /**
     * 更新当前对象所有数据
     * @param record
     * @return
     * @throws MergeClassException
     */
    public int updateByPrimaryKey(MergeClass record) throws MergeClassException;
    
    /**
     * 选择性更新内容——不为空则更新该字段
     * @param record
     * @return
     * @throws MergeClassException
     */
    public int updateByPrimaryKeySelective(MergeClass record) throws MergeClassException;
    
    /**
     * 根据id删除当前对象
     * @param id
     * @return
     * @throws MergeClassException
     */
    public int deleteByPrimaryKey(Long id) throws MergeClassException;
 
    
    /**
     * 根据id查找当前对象
     * @param id
     * @return
     * @throws MergeClassException
     */
    public MergeClass selectByPrimaryKeyCache(Long id) throws MergeClassException;
 
    public MergeClass selectByPrimaryKey(Long id) throws MergeClassException;
}