GetOrders添加参数adjustCount,表示最少调整次数

This commit is contained in:
gazebo
2019-10-14 17:27:45 +08:00
parent d9e0dfa279
commit a0a668e546
2 changed files with 5 additions and 0 deletions

View File

@@ -376,6 +376,10 @@ func (c *OrderManager) getOrders(ctx *jxcontext.Context, isIncludeSku, isInclude
sqlWhere += " AND (SELECT COUNT(*) FROM order_sku t11 WHERE t11.vendor_order_id = t1.vendor_order_id AND t11.vendor_id = t1.vendor_id AND t11.jx_sku_id IN (" + dao.GenQuestionMarks(len(skuIDs)) + ")) > 0"
sqlParams = append(sqlParams, skuIDs)
}
if params["adjustCount"] != nil {
sqlWhere += " AND t1.adjust_count >= ?"
sqlParams = append(sqlParams, params["adjustCount"])
}
}
if params["vendorIDs"] != nil {
var vendorIDs []int