Administrator
4 days ago 5f366e546806a5690ff7a5770857048663e4521a
src/main/java/cc/mrbird/febs/ai/controller/product/ViewController.java
@@ -112,11 +112,13 @@
        Set<String> productIds = new HashSet<>();
        AiProduct entity = aiProductService.getById(id);
        String companyId = entity.getCompanyId();
        if(ObjectUtil.isNotNull(entity)){
            //右侧数据
            LambdaQueryWrapper<AiProductRoleLink> query = Wrappers.lambdaQuery(AiProductRoleLink.class);
            if(StrUtil.isNotEmpty(id)){
                query.eq(AiProductRoleLink::getProductId, id);
                query.eq(AiProductRoleLink::getCompanyId, companyId);
            }
            List<AiProductRoleLink> selectedList = aiProductRoleLinkService.selectListByQuery(query);
            if(CollUtil.isNotEmpty(selectedList)){
@@ -125,7 +127,7 @@
            }
            //左侧数据
            List<AiProductRole> allList = aiProductRoleService.productRoleTree();
            List<AiProductRole> allList = aiProductRoleService.productRoleTree(companyId);
            if(CollUtil.isNotEmpty(allList)){
                //stream流操作mallMembers,生成一个新的List<MallMemberVo>
                vos = allList.stream().map(AiProductRole -> {