|
|
|
@ -72,7 +72,7 @@ public class AuditServiceImpl implements AuditService { |
|
|
|
*/ |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
@Override |
|
|
|
public boolean auditOrder(String token, String orderCode, Integer auditId, Integer action, String rejectReason, BigDecimal price, String linkId) throws Exception { |
|
|
|
public boolean auditOrder(String token, String orderCode, Integer auditId, Integer action, String rejectReason, BigDecimal price, String linkId ,Integer refundModel) throws Exception { |
|
|
|
|
|
|
|
if (linkId == null) { |
|
|
|
linkId = orderCode; |
|
|
|
@ -254,7 +254,12 @@ public class AuditServiceImpl implements AuditService { |
|
|
|
refundRecord.setType(2); // 退款类型 |
|
|
|
refundRecord.setAmount(refundAmount.intValue()); // 🔥 退款存正数 |
|
|
|
refundRecord.setOrderCode(order.getOrderCode()); |
|
|
|
refundRecord.setDescription("订单退款"); |
|
|
|
if(refundModel==0){ |
|
|
|
refundRecord.setDescription("全部退款"); |
|
|
|
}else{ |
|
|
|
refundRecord.setDescription("部分退款"); |
|
|
|
} |
|
|
|
|
|
|
|
refundRecord.setStatus(0); |
|
|
|
walletService.addUserWalletRecord(refundRecord); |
|
|
|
|
|
|
|
|