增加价格排序

This commit is contained in:
qiyunfanbo126.com 2024-08-02 10:05:33 +08:00
parent 55edaf8f35
commit b12b23fa6a
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ func OrderNotify(request front.YouChuRequest) (NotifyResponse front.YouChuOrderN
} }
_, err = ordersmodel.GetInstance().GetDb().Where("id = ?", order.Id).Update(ordersmodel.Orders{ExchangeTime: time.Now()}) _, err = ordersmodel.GetInstance().GetDb().Where("id = ?", order.Id).Update(ordersmodel.Orders{ExchangeTime: time.Now()})
utils.Log(nil, "更新订单err", err) utils.Log(nil, "更新订单err", order.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 {