京西商城订单在完成后不置顶
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user