feige
2024-10-07 f57c5b200b97a01738ace0cfa06e991ee4c01460
zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionShaServiceImpl.java
@@ -22,7 +22,9 @@
@Slf4j
@Service
public class ZfCollectionShaServiceImpl extends ServiceImpl<ZfShareMapper, ZfShare> implements ZfCollectionShareService {
    @Resource
@@ -80,7 +82,10 @@
                za.setUserId(getUserId());
                za.setShareContent(shareContent);
                za.setShareId(shareId);
                za.setSysMenuId(2018L);
                addData(za);
            }
        }
@@ -109,8 +114,12 @@
        int totalPage = (beanRecord3.size() -1) / pageSize +1;
        Page<ZfCollection> zfCollectionPage = new Page<>(pageNo, pageSize,totalPage);
        HashMap<String, Object> data = MapUtils.getShareResult(zfCollectionPage, record,beanRecord3.size());
        return AjaxResult.success(data);
    }
@@ -139,7 +148,10 @@
        HashMap<Long,List<ZfCollection>>  bs = new HashMap<>();
        LambdaQueryWrapper<ZfShare> lqw = new LambdaQueryWrapper<>();
        lqw.eq(ZfShare::getShareId,getUserId());
        lqw.eq(ZfShare::getSysMenuId,2018L);
        List<ZfShare> beanRecords = list(lqw);
        List<ZfCollection> b1 = new ArrayList<>();
        for (ZfShare beanRecord : beanRecords ) {
@@ -155,7 +167,9 @@
        List<ZfCollection>  bs = new ArrayList<>();
        LambdaQueryWrapper<ZfShare> lqw = new LambdaQueryWrapper<>();
        lqw.eq(ZfShare::getShareId,getUserId());
        lqw.eq(ZfShare::getSysMenuId,2018L);
        List<ZfShare> beanRecords = list(lqw);
        for (ZfShare beanRecord : beanRecords ) {
            ZfCollection bs2 = zfCollectionService.getById(beanRecord.getShareContent());
@@ -167,7 +181,10 @@
        int totalPage = (bs.size() -1) / pageSize +1;
        Page<ZfCollection> zfCollectionPage = new Page<>(pageNo, pageSize,totalPage);
        HashMap<String, Object> data = MapUtils.getShareResult(zfCollectionPage, record,bs.size());
        return AjaxResult.success(data);
    }