fix(livestream): 放宽待处理订单状态筛选
直播间 pending-orders 接口改为同时展示状态 2 和状态 3 且未发满奖励的订单,避免因为抖店同步把订单刷成已发货后页面看不到待处理订单。
This commit is contained in:
parent
38edc9f324
commit
25d32831ea
@ -408,8 +408,8 @@ func (h *handler) GetLivestreamPendingOrders() core.HandlerFunc {
|
||||
var pendingOrders []model.DouyinOrders
|
||||
db := h.repo.GetDbR().WithContext(ctx.RequestContext())
|
||||
|
||||
err = db.Where("order_status = 2 AND reward_granted < product_count AND douyin_product_id = ?",
|
||||
activity.DouyinProductID).
|
||||
err = db.Where("order_status IN ? AND reward_granted < product_count AND douyin_product_id = ?",
|
||||
[]int{2, 3}, activity.DouyinProductID).
|
||||
Find(&pendingOrders).Error
|
||||
|
||||
if err != nil {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user