| | |
| | | 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);
|
| | | }
|
| | | }
|
| | | 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); |
| | | } |
| | | } |