新增订单轮询
This commit is contained in:
parent
196447c108
commit
6c9f3f3e6e
|
@ -98,9 +98,8 @@ func OrderQueryService(userId int, OrderRequest *front.OrderListRequest) (code i
|
|||
repo := ordersmodel.GetInstance().GetDb()
|
||||
conn := builder.NewCond()
|
||||
conn = conn.And(builder.IsNull{"a.Deleted"})
|
||||
if config.GetConf().Debug == false {
|
||||
conn = conn.And(builder.Eq{"a.user_id": userId})
|
||||
}
|
||||
conn = conn.And(builder.Eq{"a.user_id": userId})
|
||||
|
||||
if OrderRequest.State != 0 {
|
||||
conn = conn.And(builder.Eq{"a.state": OrderRequest.State})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue