Commit 8faad652 authored by 赵啸非's avatar 赵啸非

添加区域树结构

parent 9c371859
......@@ -186,7 +186,9 @@ public class AreaServiceImpl extends AbstractCRUDCacheServiceImpl<AreaDao, AreaE
rootId = 0L;
}
AreaEntity areaEntity = this.getCache(rootId.toString());
AreaEntity areaEntity=this.selectOne(new AreaQuery().pid(rootId.toString()));
//AreaEntity areaEntity = this.getCache(rootId.toString());
AreaTreeSelect areaTreeSelect = new AreaTreeSelect(areaEntity);
List<AreaTreeSelect> list = this.cacheService.lrange(super.getCacheName() + ":" + areaEntity.getId(), AreaEntity.class).stream().map(item -> new AreaTreeSelect(item)).collect(Collectors.toList());
......
......@@ -48,5 +48,10 @@ GET {{baseUrl}}/area/delete?id={{Area_id}}
Accept: application/json
###区域查看
GET {{baseUrl}}/area/getListByRootId
Accept: application/json
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment