Administrator
2 days ago 49400da0804fd0ab56056fbd0a2c9ee36cd091b6
src/main/java/cc/mrbird/febs/ai/controller/product/ViewController.java
@@ -72,11 +72,13 @@
        Set<String> productIds = new HashSet<>();
        AiProduct entity = aiProductService.getById(id);
        String companyId = entity.getCompanyId();
        if(ObjectUtil.isNotNull(entity)){
            //右侧数据
            LambdaQueryWrapper<AiProductPointLink> query = Wrappers.lambdaQuery(AiProductPointLink.class);
            if(StrUtil.isNotEmpty(id)){
                query.eq(AiProductPointLink::getProductId, id);
                query.eq(AiProductPointLink::getCompanyId, companyId);
            }
            List<AiProductPointLink> selectedList = aiProductPointLinkService.selectListByQuery(query);
            if(CollUtil.isNotEmpty(selectedList)){
@@ -85,7 +87,7 @@
            }
            //左侧数据
            List<AiProductPoint> allList = aiProductPointService.pointTree();
            List<AiProductPoint> allList = aiProductPointService.pointTree(companyId);
            if(CollUtil.isNotEmpty(allList)){
                //stream流操作mallMembers,生成一个新的List<MallMemberVo>
                vos = allList.stream().map(AiProductPoint -> {