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

添加多级查询区域下站点

parent ac5a88bb
......@@ -41,8 +41,7 @@ public class WindowBusinessServiceImpl extends AbstractCRUDServiceImpl<WindowBus
@Override
protected void findAfter(WindowBusinessEntity entity, PageInfo pageInfo, Context context, List<WindowBusinessEntity> list) throws AppException {
Map<Long, WindowEntity> collect = windowService.find(new WindowQuery()).stream().collect(Collectors.toMap(x -> x.getId(), y -> y));
Map<Long, WindowEntity> collect = windowService.findToMap(new WindowQuery(), context);
list.forEach(item->{
if(!ObjectUtils.isEmpty(item.getWindowId())&&!ObjectUtils.isEmpty(collect.get(item.getWindowId()))){
item.setFromnum(collect.get(item.getWindowId()).getFromnum());
......
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