1
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user