优化mtwm.ListOrders

This commit is contained in:
gazebo
2019-10-29 17:28:49 +08:00
parent 378edfd3c9
commit 84bd8d0b32

View File

@@ -579,7 +579,7 @@ func (c *PurchaseHandler) ListOrders(ctx *jxcontext.Context, parentTask tasksch.
orderIDs = append(orderIDs, utils.Int64ToStr(v))
}
}
if err = err2; err != nil || len(tmpOrderIDs) == 0 {
if err = err2; err != nil || len(tmpOrderIDs) < mtwmapi.MaxGap4GetOrderIdByDaySeq {
err = nil
break
}