Commit 5cd5b1a3 authored by 赵啸非's avatar 赵啸非

添加批量新增窗口业务接口

parent de052b58
...@@ -53,7 +53,7 @@ public class WindowServiceImpl extends AbstractCRUDServiceImpl<WindowDao, Window ...@@ -53,7 +53,7 @@ public class WindowServiceImpl extends AbstractCRUDServiceImpl<WindowDao, Window
@Override @Override
protected void findAfter(WindowEntity params, PageInfo pageInfo, Context context, List<WindowEntity> list) throws AppException { protected void findAfter(WindowEntity params, PageInfo pageInfo, Context context, List<WindowEntity> list) throws AppException {
Map<Long, List<WorkmanEntity>> collect = workmanService.find(new WorkmanQuery()).stream().collect(Collectors.groupingBy(x -> x.getWindowId())); Map<Long, List<WorkmanEntity>> collect = workmanService.find(new WorkmanQuery()).stream().filter(f->f.getWindowId()!=null).collect(Collectors.groupingBy(x -> x.getWindowId()));
list.stream().peek(item -> { list.stream().peek(item -> {
if (!ObjectUtils.isEmpty(collect.get(item.getId()))) { if (!ObjectUtils.isEmpty(collect.get(item.getId()))) {
item.setWorkmanList(collect.get(item.getId())); item.setWorkmanList(collect.get(item.getId()));
......
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