排序规则调整
This commit is contained in:
@@ -217,14 +217,16 @@ class FinPaymentApplyService
|
||||
$orderByClause = "CASE
|
||||
WHEN created_at >= {$sevenDaysAgo} THEN
|
||||
(" . implode(' + ', $similarityOrder) . ")
|
||||
ELSE 999999
|
||||
ELSE 0
|
||||
END ASC, ";
|
||||
}
|
||||
|
||||
$orderByClause .= "CASE
|
||||
WHEN created_at < {$sevenDaysAgo} THEN id
|
||||
ELSE 0
|
||||
ELSE 999999
|
||||
END DESC";
|
||||
|
||||
$orderByClause .= ", id DESC";
|
||||
|
||||
$query->orderByRaw($orderByClause);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user