|
|
@@ -3,6 +3,7 @@ package com.kede.admin.service.impl;
|
|
|
import com.kede.common.dao.SysConfigMapper;
|
|
|
import com.kede.common.model.SysConfig;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import com.kede.admin.service.AdminService;
|
|
|
@@ -40,6 +41,7 @@ public class AdminServiceImpl implements AdminService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Cacheable(cacheNames="getSysConfig#600", key = "'getSysConfig'+':ps='+#id")
|
|
|
public SysConfig getSysConfig(Integer id) {
|
|
|
return sysConfigMapper.selectByPrimaryKey(id);
|
|
|
}
|