增加价格排序

This commit is contained in:
qiyunfanbo126.com 2024-07-31 15:45:02 +08:00
parent 0e65a8a02d
commit a0b817d701
1 changed files with 2 additions and 2 deletions

View File

@ -174,11 +174,11 @@ func OrderRefundService(userId int, orderId int) (code int) {
if response.RefundOrderSta != "03" { if response.RefundOrderSta != "03" {
return errorcode.OrderRefundFail return errorcode.OrderRefundFail
} else { } else {
order.State = common.ORDER_STATUS_ReFUNDING order.State = common.ORDER_STATUS_ReFUNDEND
order.RefundOrderNo = response.RefundOrderNo order.RefundOrderNo = response.RefundOrderNo
order.RefundOrderSta = response.RefundOrderSta order.RefundOrderSta = response.RefundOrderSta
order.RefundTime = time.Now() order.RefundTime = time.Now()
_, err := ordersmodel.GetInstance().GetDb().Update(order) _, err := ordersmodel.GetInstance().GetDb().Where("id = ?", order.Id).Update(order)
if err != nil { if err != nil {
return errorcode.OrderRefundUpdateFail return errorcode.OrderRefundUpdateFail
} }