package cn.pluss.platform.cacheInfo.impl;

import cn.pluss.platform.cacheInfo.CacheInfoService;
import cn.pluss.platform.entity.CacheInfo;
import cn.pluss.platform.mapper.CacheInfoMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 缓存信息表 服务实现类
 * </p>
 *
 * @author bzg
 * @since 2021-09-24
 */
@Service
public class CacheInfoServiceImpl extends ServiceImpl<CacheInfoMapper, CacheInfo> implements CacheInfoService {

    @Override
    public CacheInfo getCacheInfoByKeyCode(String keyCode) {
        return baseMapper.selectOne(new QueryWrapper<CacheInfo>().eq("keyCode",keyCode));
    }

    @Override
    public String getShqCacheInfoByKeyCode(String keyCode) {
        return baseMapper.getShqCacheInfoByKeyCode(keyCode);
    }
}
