Commit 37703ec1 authored by 廖旭伟's avatar 廖旭伟

测试bug修改

parent 58052829
...@@ -331,6 +331,10 @@ public class ProductServiceImpl extends AbstractCRUDCacheServiceImpl<ProductDao, ...@@ -331,6 +331,10 @@ public class ProductServiceImpl extends AbstractCRUDCacheServiceImpl<ProductDao,
}else { }else {
entity.setFavoriteStatus(0); entity.setFavoriteStatus(0);
} }
String categoryIds = productCategoryService.find(new ProductCategoryQuery().productId(entity.getId())).stream().map(i -> i.getCategoryId().toString()).distinct().collect(Collectors.joining(","));
String companyIds = companyProductService.find(new CompanyProductQuery().productId(entity.getId())).stream().map(i -> i.getCompanyId().toString()).distinct().collect(Collectors.joining(","));
entity.setCompanyId(companyIds);
entity.setCategoryId(categoryIds);
} }
return entity; return entity;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment