增加价格排序

This commit is contained in:
qiyunfanbo126.com 2024-07-31 12:48:45 +08:00
parent 4fb1362c6c
commit 214b2a5c96
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ func CreateOrderService(userId int, productId int) (code int, data front.InsertO
func OrderQueryService(userId int, OrderRequest *front.OrderListRequest) (code int, data []ordersmodel.OrdersProductsList, count int64) {
repo := ordersmodel.GetInstance().GetDb()
conn := builder.NewCond()
conn.And(builder.IsNull{"Delete"})
conn = conn.And(builder.IsNull{"a.Deleted"})
if config.GetConf().Debug == false {
conn = conn.And(builder.Eq{"a.user_id": userId})
}