yangyb 2 settimane fa
parent
commit
5baf9fd795

+ 1 - 1
mall-service/src/main/java/com/txz/mall/service/impl/StoreOrderServiceImpl.java

@@ -1176,7 +1176,7 @@ public class StoreOrderServiceImpl extends AbstractService<StoreOrder> implement
             Long combinationId = orderInfoVo.getCombinationId();
             OrderInfoDetailVO detailVo = orderInfoVo.getOrderDetailList().get(0);
             StoreCombination storeCombination = storeCombinationService.getByIdException(combinationId);
-            ProductAttrValue combinationAttrValue = productAttrValueService.getByIdAndProductIdAndType(detailVo.getAttrValueId(), combinationId, Constants.PRODUCT_TYPE_PINGTUAN);
+            ProductAttrValue combinationAttrValue = productAttrValueService.getByIdAndProductIdAndType(detailVo.getAttrValueId(), detailVo.getProductId(), Constants.PRODUCT_TYPE_PINGTUAN);
             if (ObjectUtil.isNull(combinationAttrValue)) {
                 throw new ServiceException("拼团商品规格不存在");
             }