This commit is contained in:
Your Name
2026-08-07 15:25:09 +08:00
parent 971a627288
commit a968945057
3 changed files with 4 additions and 4 deletions
@@ -369,8 +369,8 @@ class PerformanceDashboardLogic
->where('status', 2)
->where('amount', '>', 0)
->where('amount', '<', 10)
// payment_time 是 DATETIME NULLMySQL 8 严格模式下不能与空字符串比较。
->whereNotNull('payment_time')
->where('payment_time', '<>', '')
->whereBetweenTime(
'payment_time',
$startDate . ' 00:00:00',
@@ -501,8 +501,8 @@ class PerformanceDashboardLogic
->where('o.status', 2)
->where('o.amount', '>', 0)
->where('o.amount', '<', 10)
// payment_time 是 DATETIME NULLMySQL 8 严格模式下不能与空字符串比较。
->whereNotNull('o.payment_time')
->where('o.payment_time', '<>', '')
->whereBetweenTime('o.payment_time', date('Y-m-d 00:00:00'), date('Y-m-d 23:59:59'));
if ($rankingVisibleAdminIds !== null) {
$query->whereIn('o.creator_id', $rankingVisibleAdminIds);