|
@@ -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(); //扣除余额之前的金额
|
|
BigDecimal amount = replacementPayDto.getAmount(); //扣除余额之前的金额
|
|
- if (amount.compareTo(replacementInstrument.getSalePrice()) != 0) {
|
|
|
|
|
|
+ if (amount.compareTo(orderAmount) != 0) {
|
|
throw new BizException("商品价格不符");
|
|
throw new BizException("商品价格不符");
|
|
}
|
|
}
|
|
|
|
|