|
@@ -9,6 +9,7 @@ import com.chuanghai.ihotel.common.utils.PageUtils;
|
|
|
import com.chuanghai.ihotel.dao.SystemSettingDao;
|
|
import com.chuanghai.ihotel.dao.SystemSettingDao;
|
|
|
import com.chuanghai.ihotel.entity.SystemSettingEntity;
|
|
import com.chuanghai.ihotel.entity.SystemSettingEntity;
|
|
|
import com.chuanghai.ihotel.service.SystemSettingService;
|
|
import com.chuanghai.ihotel.service.SystemSettingService;
|
|
|
|
|
+import org.springframework.cache.annotation.CacheEvict;
|
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
@@ -16,8 +17,6 @@ import org.springframework.stereotype.Service;
|
|
|
@Service("systemSettingService")
|
|
@Service("systemSettingService")
|
|
|
public class SystemSettingServiceImpl extends ServiceImpl<SystemSettingDao, SystemSettingEntity> implements SystemSettingService {
|
|
public class SystemSettingServiceImpl extends ServiceImpl<SystemSettingDao, SystemSettingEntity> implements SystemSettingService {
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public PageUtils queryPage(PageParam pageParam) {
|
|
public PageUtils queryPage(PageParam pageParam) {
|
|
|
IPage<SystemSettingEntity> page = this.page(
|
|
IPage<SystemSettingEntity> page = this.page(
|
|
@@ -34,4 +33,10 @@ public class SystemSettingServiceImpl extends ServiceImpl<SystemSettingDao, Syst
|
|
|
SystemSettingEntity systemSetting = this.getOne(null);
|
|
SystemSettingEntity systemSetting = this.getOne(null);
|
|
|
return systemSetting;
|
|
return systemSetting;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @CacheEvict(value = "systemSetting", allEntries = true)
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public boolean myUpdate(SystemSettingEntity systemSetting) {
|
|
|
|
|
+ return this.updateById(systemSetting);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|