排序优化

This commit is contained in:
2025-08-20 18:19:41 +08:00
parent 8b61923692
commit 19082ea6c8
-1
View File
@@ -141,7 +141,6 @@ class CustomerService
}elseif ($sort == 'follow_last') {
$query = $query->orderBy('crm_customer.follow_last', 'desc');
}elseif ($sort == 'follow_next') {
$query = $query->orderBy('crm_customer.follow_next', 'asc');
$query = $query->orderByRaw('crm_customer.follow_next IS NULL, crm_customer.follow_next ASC');
}elseif ($sort == 'id' || empty($sort)) {
$query = $query->orderBy('crm_customer.id', 'desc');