This commit is contained in:
邹宗楠
2025-08-05 10:47:00 +08:00
parent f50d5197ff
commit cb974f7618
3 changed files with 111 additions and 44 deletions

View File

@@ -3,6 +3,7 @@ package localjx
import (
"encoding/json"
"fmt"
"git.rosy.net.cn/jx-callback/business/partner"
"strings"
"time"
@@ -202,6 +203,16 @@ func RefundOrderByTL(ctx *jxcontext.Context, orderPay *model.OrderPay, refundID
orderPay.Status = model.PayStatusRefund
dao.UpdateEntity(db, orderPay)
order, err := partner.CurOrderManager.LoadOrder(orderPay.VendorOrderID, orderPay.VendorID)
if err != nil {
return nil, err
}
if order.TotalShopMoney == int64(refundFee) {
order.Status = model.OrderStatusCanceled
order.VendorStatus = "laKaLaRefund"
dao.UpdateEntity(db, order, "Status", "VendorStatus")
}
}
return orderPayRefund, err
}