فهرست منبع

update 置换乐器换成商品换成商品中商品

周箭河 4 سال پیش
والد
کامیت
d6b8a06330

+ 3 - 3
mec-biz/src/main/java/com/ym/mec/biz/service/impl/ReplacementInstrumentActivityServiceImpl.java

@@ -188,10 +188,10 @@ public class ReplacementInstrumentActivityServiceImpl extends BaseServiceImpl<In
             }
         }
 
-        ReplacementInstrument replacementInstrument = replacementInstrumentDao.get(replacementInstrumentActivity.getInstrumentsId());
-        BigDecimal orderAmount = replacementInstrument.getSalePrice();
+        Goods goods = goodsDao.get(replacementInstrumentActivity.getInstrumentsId());
+        BigDecimal orderAmount = goods.getGroupPurchasePrice();
         BigDecimal amount = replacementPayDto.getAmount(); //扣除余额之前的金额
-        if (amount.compareTo(replacementInstrument.getSalePrice()) != 0) {
+        if (amount.compareTo(orderAmount) != 0) {
             throw new BizException("商品价格不符");
         }