| | |
| | | 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<>(); |
| | |
| | | Long familyId = myself.getFamilyId(); |
| | | System.out.println("++++++++++++++++"); |
| | | System.out.println(familyId); |
| | | |
| | | System.out.println(myself.getFatherId()); |
| | | System.out.println(zInfoUserService.getInfoById(myself.getFatherId())); |
| | | //查看父母的数据: |
| | | Long fatherFaId = 0L; |
| | | if(myself.getFatherId()!=null) |
| | | fatherFaId = zInfoUserService.getInfoById(myself.getFatherId()).getFamilyId(); |
| | | Long motherFaId = 0L; |
| | | if(myself.getMomId()!=null) |
| | | motherFaId = zInfoUserService.getInfoBysysId(myself.getMomId()).getFamilyId(); |
| | | motherFaId = zInfoUserService.getInfoById(myself.getMomId()).getFamilyId(); |
| | | |
| | | //也要查别人授权的 |
| | | List<ZAuthority> authority = zAuthorityService.getAuthority(); |
| | |
| | | } |
| | | |
| | | 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(); |