use of com.zyd.blog.business.annotation.RedisCache in project OneBlog by zhangyd-c.
the class SysLinkServiceImpl method listOfIndex.
/**
* 查询可在首页显示的友情链接列表
*
* @return
*/
@Override
@RedisCache
public List<Link> listOfIndex() {
LinkConditionVO vo = new LinkConditionVO(1, 1);
vo.setPageSize(100);
PageInfo<Link> pageInfo = this.findPageBreakByCondition(vo);
return pageInfo == null ? null : pageInfo.getList();
}
use of com.zyd.blog.business.annotation.RedisCache in project OneBlog by zhangyd-c.
the class SysLinkServiceImpl method listOfDisable.
/**
* 查询已禁用的友情链接列表
*
* @return
*/
@Override
@RedisCache
public List<Link> listOfDisable() {
LinkConditionVO vo = new LinkConditionVO(0, null);
vo.setPageSize(100);
PageInfo<Link> pageInfo = this.findPageBreakByCondition(vo);
return pageInfo == null ? null : pageInfo.getList();
}
use of com.zyd.blog.business.annotation.RedisCache in project OneBlog by zhangyd-c.
the class SysConfigServiceImpl method getByKey.
@Override
@RedisCache(enable = false)
public SysConfig getByKey(String key) {
if (StringUtils.isEmpty(key)) {
return null;
}
SysConfig sysConfig = new SysConfig();
sysConfig.setConfigKey(key);
return this.sysConfigMapper.selectOne(sysConfig);
}
use of com.zyd.blog.business.annotation.RedisCache in project OneBlog by zhangyd-c.
the class SysConfigServiceImpl method saveFile.
@Override
@RedisCache(flush = true, enable = false)
public void saveFile(String key, MultipartFile file) {
if (key == null) {
return;
}
if (file != null) {
FileUploader uploader = new GlobalFileUploader();
VirtualFile virtualFile = uploader.upload(file, FileUploadType.QRCODE.getPath(), true);
this.saveConfig(key, virtualFile.getFullFilePath());
}
}
use of com.zyd.blog.business.annotation.RedisCache in project OneBlog by zhangyd-c.
the class SysLinkServiceImpl method listOfInside.
/**
* 查询可在内页显示的友情链接列表
*
* @return
*/
@Override
@RedisCache
public List<Link> listOfInside() {
LinkConditionVO vo = new LinkConditionVO(1, 0);
vo.setPageSize(100);
PageInfo<Link> pageInfo = this.findPageBreakByCondition(vo);
return pageInfo == null ? null : pageInfo.getList();
}
Aggregations