|
@@ -67,10 +67,12 @@ public class PayServiceImpl implements PayService {
|
|
|
BigDecimal receiptAmount = BigDecimal.ZERO;
|
|
|
if (null != discernReceiptList && discernReceiptList.size() > 0) {
|
|
|
for (DiscernReceiptVo discernReceipt : discernReceiptList) {
|
|
|
- receiptAmount = receiptAmount.add(discernReceipt.getAssociateAmount());
|
|
|
if ("2".equals(discernReceipt.getPayWay())) {
|
|
|
return model.error("线下支付过只能走线下");
|
|
|
}
|
|
|
+ if ("3".equals(discernReceipt.getReceiptStatus())) {
|
|
|
+ receiptAmount = receiptAmount.add(discernReceipt.getAssociateAmount());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
order.setReceiptAmount(receiptAmount);
|