增加价格排序
This commit is contained in:
parent
4fb1362c6c
commit
214b2a5c96
|
@ -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})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue