Administrator
1 days ago 3b05389a5bcf93ead612761835952699a4b2e302
src/main/java/cc/mrbird/febs/ai/controller/product/ViewController.java
@@ -156,11 +156,13 @@
        Set<String> productIds = new HashSet<>();
        AiProduct entity = aiProductService.getById(id);
        String companyId = entity.getCompanyId();
        if(ObjectUtil.isNotNull(entity)){
            //右侧数据
            LambdaQueryWrapper<AiProductQuestionLink> query = Wrappers.lambdaQuery(AiProductQuestionLink.class);
            if(StrUtil.isNotEmpty(id)){
                query.eq(AiProductQuestionLink::getProductId, id);
                query.eq(AiProductQuestionLink::getCompanyId, companyId);
            }
            List<AiProductQuestionLink> selectedList = aiProductQuestionLinkService.selectListByQuery(query);
            if(CollUtil.isNotEmpty(selectedList)){
@@ -172,6 +174,7 @@
            LambdaQueryWrapper<AiProductQuestion> aiProductQuestionLambdaQueryWrapper = Wrappers.lambdaQuery(AiProductQuestion.class);
            aiProductQuestionLambdaQueryWrapper.eq(AiProductQuestion::getProductCategoryId, entity.getProductCategoryId());
            aiProductQuestionLambdaQueryWrapper.eq(AiProductQuestion::getState, 1);
            aiProductQuestionLambdaQueryWrapper.eq(AiProductQuestion::getCompanyId, companyId);
            List<AiProductQuestion> allList = aiProductQuestionService.productQuestionTree(aiProductQuestionLambdaQueryWrapper);
            if(CollUtil.isNotEmpty(allList)){
                //stream流操作mallMembers,生成一个新的List<MallMemberVo>