新增订单轮询

This commit is contained in:
qiyunfanbo126.com 2024-09-04 16:28:58 +08:00
parent 196447c108
commit 6c9f3f3e6e
1 changed files with 2 additions and 3 deletions

View File

@ -98,9 +98,8 @@ func OrderQueryService(userId int, OrderRequest *front.OrderListRequest) (code i
repo := ordersmodel.GetInstance().GetDb() repo := ordersmodel.GetInstance().GetDb()
conn := builder.NewCond() conn := builder.NewCond()
conn = conn.And(builder.IsNull{"a.Deleted"}) 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 { if OrderRequest.State != 0 {
conn = conn.And(builder.Eq{"a.state": OrderRequest.State}) conn = conn.And(builder.Eq{"a.state": OrderRequest.State})
} }