Commit 9866304a authored by 赵啸非's avatar 赵啸非

添加窗口无人值守

parent 5afb820d
......@@ -136,15 +136,21 @@ public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, W
WindowBusinessQuery windowBusinessQuery = new WindowBusinessQuery();
windowBusinessQuery.setWindowIdList(Arrays.asList(ids));
List<WindowBusinessEntity> windowBusinessEntities = windowBusinessService.find(windowBusinessQuery);
log.info("remove windowBusinessEntities size:{}",windowBusinessEntities.size());
if (!ObjectUtils.isEmpty(windowBusinessEntities)) {
windowBusinessService.removeList(windowBusinessEntities, context);
List<Long> idList = windowBusinessEntities.stream().map(item -> item.getId()).collect(Collectors.toList());
//windowBusinessService.removeList(windowBusinessEntities, context);
windowBusinessService.remove(idList, context);
}
//级联删除窗口事项
WindowMatterQuery windowMatterQuery = new WindowMatterQuery();
windowMatterQuery.setWindowIdList(Arrays.asList(ids));
List<WindowMatterEntity> windowMatterEntities = windowMatterService.find(windowMatterQuery);
log.info("remove windowMatterEntities size:{}",windowMatterEntities.size());
if (!ObjectUtils.isEmpty(windowMatterEntities)) {
windowMatterService.removeList(windowMatterEntities, context);
List<Long> idList = windowMatterEntities.stream().map(item -> item.getId()).collect(Collectors.toList());
windowMatterService.remove(idList, context);
//windowMatterService.removeList(windowMatterEntities, context);
}
}
Arrays.asList(ids).forEach(id -> {
......
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