admin
2020-05-19 744594ef1a2f530fc3e86ea9dc48b62247f79420
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
package com.yeshi.fanli.service.impl.homemodule;
 
import java.util.List;
 
import javax.annotation.Resource;
 
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
 
import com.yeshi.fanli.dao.mybatis.homemodule.SuperSpecialMapper;
import com.yeshi.fanli.entity.bus.homemodule.SuperSpecial;
import com.yeshi.fanli.service.inter.homemodule.SuperSpecialService;
 
 
@Service
public class SuperSpecialServiceImpl implements SuperSpecialService {
    
    @Resource
    private SuperSpecialMapper superSpecialMapper;
 
    
    @Override
    public int deleteByPrimaryKey(Long id) {
        return superSpecialMapper.deleteByPrimaryKey(id);
    }
 
    @Override
    public int insert(SuperSpecial record) {
        return superSpecialMapper.insert(record);
    }
 
    @Override
    public int insertSelective(SuperSpecial record) {
        return superSpecialMapper.insertSelective(record);
    }
 
    @Override
    public SuperSpecial selectByPrimaryKey(Long id) {
        return superSpecialMapper.selectByPrimaryKey(id);
    }
 
    @Override
    public int updateByPrimaryKeySelective(SuperSpecial record) {
        return superSpecialMapper.updateByPrimaryKeySelective(record);
    }
 
    @Override
    public int updateByPrimaryKey(SuperSpecial record) {
        return superSpecialMapper.updateByPrimaryKey(record);
    }
 
    @Override
    public List<SuperSpecial> listBySystemAndCard(Long systemId, String card) {
        
        return superSpecialMapper.listBySystemAndCard(systemId, card);
    }
 
    
    @Cacheable(value = "configCache", key = "'listBySystemAndCardCache-'+#systemId+'-'+#card")
    @Override
    public List<SuperSpecial> listBySystemAndCardCache(Long systemId, String card) {
        return listBySystemAndCard(systemId, card);
    }
}