| | |
| | | private EsService esSer; |
| | | |
| | | @Resource |
| | | private ZfEventDownloadService zfEventDownloadService; |
| | | |
| | | @Resource |
| | | private ZfEventShareService zfEventShareService; |
| | | |
| | | @Resource |
| | | private RestHighLevelClient restHighLevelClient; |
| | | private LambdaQueryWrapper<ZfEvent> buildCondition(ZfEvent zfEvent,List<Long> familyIdList) { |
| | | LambdaQueryWrapper<ZfEvent> lqw = new LambdaQueryWrapper<>(); |
| | |
| | | } |
| | | |
| | | List<ZfEvent> zfEvents = listByIds(Arrays.asList(ids)); |
| | | if (! (zfEventDownloadService.deleteData(ids) && zfEventShareService.deleteByContentId(ids) ) ){ |
| | | return AjaxResult.error(); |
| | | } |
| | | |
| | | if (zfEventService.removeByIds(Arrays.asList(ids))) { |
| | | |
| | | //删除es中的数据 |
| | | zfEvents.stream().forEach(zfEvent -> { |
| | | EsModel esModel = esSer.findByCtId(zfEvent.getId(), "家大事记"); |
| | |
| | | } |
| | | }); |
| | | |
| | | |
| | | return AjaxResult.success(); |
| | | }else { |
| | | return AjaxResult.error(); |