京西商城订单在完成后不置顶

This commit is contained in:
gazebo
2019-10-13 12:24:15 +08:00
parent a879336155
commit 2042e01c61

View File

@@ -395,8 +395,8 @@ func (c *OrderManager) getOrders(ctx *jxcontext.Context, isIncludeSku, isInclude
} else {
if isJxFirst {
sql += `
ORDER BY IF(t1.vendor_id = ?, 0, 1), t1.order_created_at DESC`
sqlParams = append(sqlParams, model.VendorIDJX)
ORDER BY IF(t1.status < ?, IF(t1.vendor_id = ?, 0, 1), 0), t1.order_created_at DESC`
sqlParams = append(sqlParams, model.OrderStatusEndBegin, model.VendorIDJX)
} else {
sql += `
ORDER BY t1.order_created_at DESC`