feige
2024-10-25 81995abfa712d65b7f7f1e23b97a97bc4065103d
zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionServiceImpl.java
@@ -63,6 +63,12 @@
    @Resource
    RestHighLevelClient restHighLevelClient;
    @Resource
    ZfCollectionShareService zfCollectionShareService;
    @Resource
    ZfCollectionDownloadService zfCollectionDownloadService;
    private LambdaQueryWrapper<ZfCollection> buildCondition(ZfCollection zfCollection,List<Long> familyIdList) {
        LambdaQueryWrapper<ZfCollection> lqw = new LambdaQueryWrapper<>();
        lqw.orderByDesc(ZfCollection::getCreateTime);
@@ -322,7 +328,7 @@
            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();
@@ -579,7 +585,9 @@
        }
        List<ZfCollection> zfCollections = listByIds(Arrays.asList(ids));
        if (! ( zfCollectionDownloadService.deleteData(ids) && zfCollectionShareService.deleteByContentId(ids)  ) ){
            return AjaxResult.error();
        }
        if (zfCollectionService.removeByIds(Arrays.asList(ids))) {
            //删除es中的数据