package com.yeshi.fanli.goods.service.impl.clazz;
|
|
import javax.annotation.Resource;
|
|
import org.fanli.facade.goods.entity.clazz.MergeClass;
|
import org.fanli.facade.goods.exception.clazz.MergeClassException;
|
import org.fanli.facade.goods.service.clazz.MergeClassService;
|
import org.springframework.cache.annotation.Cacheable;
|
|
import com.alibaba.dubbo.config.annotation.Service;
|
import com.yeshi.fanli.goods.dao.clazz.MergeClassMapper;
|
|
@Service(version = "1.0.0")
|
public class MergeClassServiceImpl implements MergeClassService {
|
|
|
@Resource
|
private MergeClassMapper mergeClassMapper;
|
|
|
@Override
|
public int insert(MergeClass record) throws MergeClassException{
|
return mergeClassMapper.insert(record);
|
}
|
|
|
@Override
|
public int updateByPrimaryKey(MergeClass record) throws MergeClassException{
|
return mergeClassMapper.updateByPrimaryKey(record);
|
}
|
|
@Override
|
public int updateByPrimaryKeySelective(MergeClass record) throws MergeClassException{
|
return mergeClassMapper.updateByPrimaryKeySelective(record);
|
}
|
|
@Override
|
public int deleteByPrimaryKey(Long id) throws MergeClassException{
|
return mergeClassMapper.deleteByPrimaryKey(id);
|
}
|
|
|
@Override
|
public MergeClass selectByPrimaryKey(Long id) throws MergeClassException {
|
return mergeClassMapper.selectByPrimaryKey(id);
|
}
|
|
@Override
|
@Cacheable(value = "mergeClassCache",key="'selectByPrimaryKeyCache-'+#id")
|
public MergeClass selectByPrimaryKeyCache(Long id) throws MergeClassException {
|
return selectByPrimaryKey(id);
|
}
|
}
|
|