退单
This commit is contained in:
@@ -707,7 +707,7 @@ public class BuyOrderController {
|
||||
|
||||
int refundId = buyOrderRefund.getId();
|
||||
if (Constants.PAYMENT_METHOD_VIRTUAL.equals(buyOrder.getPaymentMethod())) {
|
||||
if(refundFee.compareTo(BigDecimal.ZERO)>0){
|
||||
//if(refundFee.compareTo(BigDecimal.ZERO)>0){
|
||||
//退还虚拟币
|
||||
transactionDetailsService.refundRecord(buyOrder,user,refundFee);
|
||||
user.setPeanutCoin(user.getPeanutCoin().add(refundFee));
|
||||
@@ -720,7 +720,7 @@ public class BuyOrderController {
|
||||
buyOrder.setOrderStatus(Constants.ORDER_STATUS_REFUND);
|
||||
buyOrderService.updateById(buyOrder);
|
||||
return R.ok("ok");
|
||||
}
|
||||
//}
|
||||
} else if (Constants.PAYMENT_METHOD_WECHAT_PAY.equals(buyOrder.getPaymentMethod())) {
|
||||
buyOrderRefundLogService.insertRefundLog(refundId,1,0);
|
||||
if (refundFee.compareTo(BigDecimal.ZERO) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user