Commit a1f4e4da by 胡敬轩

爱马哥低碳活动 活动结束即可删除此代码

parent a9834867
...@@ -534,7 +534,7 @@ public class OrderAdapterServiceImpl { ...@@ -534,7 +534,7 @@ public class OrderAdapterServiceImpl {
private boolean isGoodInActivity(String partnerId,List<ProductBeanV1> productList){ private boolean isGoodInActivity(String partnerId,List<ProductBeanV1> productList){
List<String> partnerList = Arrays.asList(weixinPayGoods.split(",")); List<String> partnerList = Arrays.asList(weixinPayGoods.split(","));
if(CollectionUtils.isNotEmpty(partnerList) && CollectionUtils.isNotEmpty(productList)){ if(CollectionUtils.isNotEmpty(partnerList) && CollectionUtils.isNotEmpty(productList)){
return productList.stream().anyMatch(productBeanV1 -> partnerList.contains(partnerId+"@"+productBeanV1.getProductId())); return productList.stream().anyMatch(productBeanV1 -> partnerList.contains(partnerId+"@"+(StringUtils.isBlank(productBeanV1.getSpecification())?productBeanV1.getProductId():productBeanV1.getSpecification())));
} }
return false; return false;
} }
......
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