增加价格排序
This commit is contained in:
parent
b12b23fa6a
commit
9841a6989d
|
@ -216,8 +216,8 @@ func OrderNotify(request front.YouChuRequest) (NotifyResponse front.YouChuOrderN
|
||||||
return front.YouChuOrderNotifyResponse{RespCode: "000003", RespMsg: "订单不存在"}
|
return front.YouChuOrderNotifyResponse{RespCode: "000003", RespMsg: "订单不存在"}
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = ordersmodel.GetInstance().GetDb().Where("id = ?", order.Id).Update(ordersmodel.Orders{ExchangeTime: time.Now()})
|
_, err = ordersmodel.GetInstance().GetDb().Where("id = ?", orderDetail.Id).Update(ordersmodel.Orders{ExchangeTime: time.Now()})
|
||||||
utils.Log(nil, "更新订单err", order.Id, err)
|
utils.Log(nil, "更新订单err", orderDetail.Id, err)
|
||||||
var productDetail productsmodel.Products
|
var productDetail productsmodel.Products
|
||||||
has, err = productsmodel.GetInstance().GetDb().Where("id = ?", orderDetail.ProductId).Get(&productDetail)
|
has, err = productsmodel.GetInstance().GetDb().Where("id = ?", orderDetail.ProductId).Get(&productDetail)
|
||||||
if err != nil || !has {
|
if err != nil || !has {
|
||||||
|
|
Loading…
Reference in New Issue