/**
* 通用字典缓存
*
* @author shengguimin
*/
@Component
public class DictRedisMapper extends AbstractRedisMapper<Entity> {
private final Logger LOG = LoggerFactory.getLogger(DictRedisMapper.class);
@Resource
private UploadFileService uploadFileService;
@Resource
private FileComponent fileComponent;
@Resource
private DictDivisionService dictDivisionService;
@Resource
private DictRlObjService dictRlObjService;
private Entity init(CacheBean type, String id) {
Entity e = null;
switch (type) {
case DICT_RL_OBJ:
e = dictRlObjService.findById(NumberUtil.parseInt(id));
if (e != null) {
saveBean(type.getTypeValue() + ((DictRlObj) e).getId(), e);
}