Commit e27eff61d46199931013d189849ecc8ef332c72d

Authored by 黄 x
1 parent 72063f72

fix: redis cache exception

... ... @@ -12,7 +12,7 @@ import org.thingsboard.server.common.data.yunteng.enums.AreaLevelEnum;
12 12 */
13 13 @Data
14 14 @ApiModel(value = "中国省市区街关联")
15   -public class SysAreaDTO {
  15 +public class SysAreaDTO implements Serializable {
16 16 @ApiModelProperty(value = "上级Code")
17 17 private Long parentId;
18 18
... ...
... ... @@ -29,7 +29,6 @@ public class SysAreaServiceImpl implements SysAreaService {
29 29
30 30 @Override
31 31 public List<SysAreaDTO> list(SysAreaDTO sysAreaDTO) {
32   - cacheManager.getCache(FastIotConstants.CacheKey.area).get(sysAreaDTO.getParentId());
33 32 List<SysAreaDTO> result = cacheManager.getCache(FastIotConstants.CacheKey.area).get(sysAreaDTO.getParentId(),List.class);
34 33 if(result == null || result.isEmpty()){
35 34 result = ReflectUtils.sourceToTarget(
... ...