增加品牌

This commit is contained in:
qiyunfanbo126.com 2024-10-22 18:07:17 +08:00
parent c9c5835b1e
commit 0cd14ccf7c
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ func OrderRefundService(userId int, orderId int) (code int) {
order.RefundOrderNo = response.RefundOrderNo
order.RefundOrderSta = response.RefundOrderSta
order.RefundTime = time.Now()
_, err := ordersmodel.GetInstance().GetDb().Where("id = ?", order.Id).Update(order)
_, err := ordersmodel.GetInstance().GetDb().Where("id = ?", order.Id).Update(order.Orders)
//增加库存
if err == nil {
_, err = ordersmodel.GetInstance().GetDb().Exec("update products set stock=stock+1 where id = " + strconv.Itoa(order.ProductId))