From 5f8f293f89f7a5b4224e4cbc5d35a680085218d9 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Mon, 20 Oct 2025 11:12:33 +0800
Subject: [PATCH] feat(ai): 添加企业成员申请功能 - 创建企业成员申请实体类 AiCompanyMemberApply - 定义成员ID、企业编码、企业名称和状态字段 - 实现 MyBatis-Plus 的 BaseMapper 接口 - 配置对应的 XML 映射文件 - 提供 IService 服务接口及其实现类 - 支持企业成员绑定审核流程的状态管理
---
src/main/java/cc/mrbird/febs/ai/controller/product/ViewController.java | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/main/java/cc/mrbird/febs/ai/controller/product/ViewController.java b/src/main/java/cc/mrbird/febs/ai/controller/product/ViewController.java
index 7f874d9..1514d86 100644
--- a/src/main/java/cc/mrbird/febs/ai/controller/product/ViewController.java
+++ b/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 -> {
@@ -112,11 +114,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 +129,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 -> {
@@ -152,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)){
@@ -168,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>
--
Gitblit v1.9.1