| | |
| | | Set<String> productIds = new HashSet<>(); |
| | | |
| | | AiMemberRole entity = aiMemberRoleService.getById(id); |
| | | String companyId = entity.getCompanyId(); |
| | | if(ObjectUtil.isNotNull(entity)){ |
| | | //右侧数据 |
| | | LambdaQueryWrapper<AiMemberRoleProduct> query = Wrappers.lambdaQuery(AiMemberRoleProduct.class); |
| | | if(StrUtil.isNotEmpty(id)){ |
| | | query.eq(AiMemberRoleProduct::getRoleId, id); |
| | | query.eq(AiMemberRoleProduct::getCompanyId, companyId); |
| | | } |
| | | List<AiMemberRoleProduct> selectedList = aiMemberRoleProductService.selectListByQuery(query); |
| | | if(CollUtil.isNotEmpty(selectedList)){ |
| | |
| | | } |
| | | |
| | | //左侧数据 |
| | | List<AiProduct> allList = aiProductService.selectList(); |
| | | List<AiProduct> allList = aiProductService.selectList(companyId); |
| | | if(CollUtil.isNotEmpty(allList)){ |
| | | //stream流操作mallMembers,生成一个新的List<MallMemberVo> |
| | | vos = allList.stream().map(AiProduct -> { |