增加品牌
This commit is contained in:
parent
c9c5835b1e
commit
0cd14ccf7c
|
@ -180,7 +180,7 @@ func OrderRefundService(userId int, orderId int) (code int) {
|
||||||
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().Where("id = ?", order.Id).Update(order)
|
_, err := ordersmodel.GetInstance().GetDb().Where("id = ?", order.Id).Update(order.Orders)
|
||||||
//增加库存
|
//增加库存
|
||||||
if err == nil {
|
if err == nil {
|
||||||
_, err = ordersmodel.GetInstance().GetDb().Exec("update products set stock=stock+1 where id = " + strconv.Itoa(order.ProductId))
|
_, err = ordersmodel.GetInstance().GetDb().Exec("update products set stock=stock+1 where id = " + strconv.Itoa(order.ProductId))
|
||||||
|
|
Loading…
Reference in New Issue