添加加载字典数据,清空字典数据,重置字典数据方法上遗漏的@Override注解
正在显示
1 个修改的文件
包含
9 行增加
和
5 行删除
| 1 | package com.ruoyi.system.service.impl; | 1 | package com.ruoyi.system.service.impl; |
| 2 | 2 | ||
| 3 | -import java.util.List; | ||
| 4 | -import javax.annotation.PostConstruct; | ||
| 5 | -import org.springframework.beans.factory.annotation.Autowired; | ||
| 6 | -import org.springframework.stereotype.Service; | ||
| 7 | -import org.springframework.transaction.annotation.Transactional; | ||
| 8 | import com.ruoyi.common.constant.UserConstants; | 3 | import com.ruoyi.common.constant.UserConstants; |
| 9 | import com.ruoyi.common.core.domain.entity.SysDictData; | 4 | import com.ruoyi.common.core.domain.entity.SysDictData; |
| 10 | import com.ruoyi.common.core.domain.entity.SysDictType; | 5 | import com.ruoyi.common.core.domain.entity.SysDictType; |
| @@ -14,6 +9,12 @@ import com.ruoyi.common.utils.StringUtils; | @@ -14,6 +9,12 @@ import com.ruoyi.common.utils.StringUtils; | ||
| 14 | import com.ruoyi.system.mapper.SysDictDataMapper; | 9 | import com.ruoyi.system.mapper.SysDictDataMapper; |
| 15 | import com.ruoyi.system.mapper.SysDictTypeMapper; | 10 | import com.ruoyi.system.mapper.SysDictTypeMapper; |
| 16 | import com.ruoyi.system.service.ISysDictTypeService; | 11 | import com.ruoyi.system.service.ISysDictTypeService; |
| 12 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 13 | +import org.springframework.stereotype.Service; | ||
| 14 | +import org.springframework.transaction.annotation.Transactional; | ||
| 15 | + | ||
| 16 | +import javax.annotation.PostConstruct; | ||
| 17 | +import java.util.List; | ||
| 17 | 18 | ||
| 18 | /** | 19 | /** |
| 19 | * 字典 业务层处理 | 20 | * 字典 业务层处理 |
| @@ -132,6 +133,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService | @@ -132,6 +133,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService | ||
| 132 | /** | 133 | /** |
| 133 | * 加载字典缓存数据 | 134 | * 加载字典缓存数据 |
| 134 | */ | 135 | */ |
| 136 | + @Override | ||
| 135 | public void loadingDictCache() | 137 | public void loadingDictCache() |
| 136 | { | 138 | { |
| 137 | List<SysDictType> dictTypeList = dictTypeMapper.selectDictTypeAll(); | 139 | List<SysDictType> dictTypeList = dictTypeMapper.selectDictTypeAll(); |
| @@ -145,6 +147,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService | @@ -145,6 +147,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService | ||
| 145 | /** | 147 | /** |
| 146 | * 清空字典缓存数据 | 148 | * 清空字典缓存数据 |
| 147 | */ | 149 | */ |
| 150 | + @Override | ||
| 148 | public void clearDictCache() | 151 | public void clearDictCache() |
| 149 | { | 152 | { |
| 150 | DictUtils.clearDictCache(); | 153 | DictUtils.clearDictCache(); |
| @@ -153,6 +156,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService | @@ -153,6 +156,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService | ||
| 153 | /** | 156 | /** |
| 154 | * 重置字典缓存数据 | 157 | * 重置字典缓存数据 |
| 155 | */ | 158 | */ |
| 159 | + @Override | ||
| 156 | public void resetDictCache() | 160 | public void resetDictCache() |
| 157 | { | 161 | { |
| 158 | clearDictCache(); | 162 | clearDictCache(); |
-
请 注册 或 登录 后发表评论