更新
This commit is contained in:
@@ -392,8 +392,8 @@ class FirstVisitDoctorDashboardLogic
|
|||||||
->where('status', 2)
|
->where('status', 2)
|
||||||
->where('amount', '>', 0)
|
->where('amount', '>', 0)
|
||||||
->where('amount', '<', 10)
|
->where('amount', '<', 10)
|
||||||
|
// payment_time 是 DATETIME NULL;MySQL 8 严格模式下不能与空字符串比较。
|
||||||
->whereNotNull('payment_time')
|
->whereNotNull('payment_time')
|
||||||
->where('payment_time', '<>', '')
|
|
||||||
->whereBetweenTime(
|
->whereBetweenTime(
|
||||||
'payment_time',
|
'payment_time',
|
||||||
$startDate . ' 00:00:00',
|
$startDate . ' 00:00:00',
|
||||||
|
|||||||
@@ -1088,8 +1088,8 @@ class ConversionLogic
|
|||||||
->alias('o')
|
->alias('o')
|
||||||
->whereNull('o.delete_time')
|
->whereNull('o.delete_time')
|
||||||
->where('o.status', 2)
|
->where('o.status', 2)
|
||||||
|
// payment_time 是 DATETIME NULL;MySQL 8 严格模式下不能与空字符串比较。
|
||||||
->whereNotNull('o.payment_time')
|
->whereNotNull('o.payment_time')
|
||||||
->where('o.payment_time', '<>', '')
|
|
||||||
->whereBetweenTime('o.payment_time', $startDateTime, $endDateTime)
|
->whereBetweenTime('o.payment_time', $startDateTime, $endDateTime)
|
||||||
->fieldRaw('o.creator_id AS source_admin_id, COUNT(*) AS paid_appointment_count')
|
->fieldRaw('o.creator_id AS source_admin_id, COUNT(*) AS paid_appointment_count')
|
||||||
->group('o.creator_id');
|
->group('o.creator_id');
|
||||||
|
|||||||
@@ -369,8 +369,8 @@ class PerformanceDashboardLogic
|
|||||||
->where('status', 2)
|
->where('status', 2)
|
||||||
->where('amount', '>', 0)
|
->where('amount', '>', 0)
|
||||||
->where('amount', '<', 10)
|
->where('amount', '<', 10)
|
||||||
|
// payment_time 是 DATETIME NULL;MySQL 8 严格模式下不能与空字符串比较。
|
||||||
->whereNotNull('payment_time')
|
->whereNotNull('payment_time')
|
||||||
->where('payment_time', '<>', '')
|
|
||||||
->whereBetweenTime(
|
->whereBetweenTime(
|
||||||
'payment_time',
|
'payment_time',
|
||||||
$startDate . ' 00:00:00',
|
$startDate . ' 00:00:00',
|
||||||
@@ -501,8 +501,8 @@ class PerformanceDashboardLogic
|
|||||||
->where('o.status', 2)
|
->where('o.status', 2)
|
||||||
->where('o.amount', '>', 0)
|
->where('o.amount', '>', 0)
|
||||||
->where('o.amount', '<', 10)
|
->where('o.amount', '<', 10)
|
||||||
|
// payment_time 是 DATETIME NULL;MySQL 8 严格模式下不能与空字符串比较。
|
||||||
->whereNotNull('o.payment_time')
|
->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'));
|
->whereBetweenTime('o.payment_time', date('Y-m-d 00:00:00'), date('Y-m-d 23:59:59'));
|
||||||
if ($rankingVisibleAdminIds !== null) {
|
if ($rankingVisibleAdminIds !== null) {
|
||||||
$query->whereIn('o.creator_id', $rankingVisibleAdminIds);
|
$query->whereIn('o.creator_id', $rankingVisibleAdminIds);
|
||||||
|
|||||||
Reference in New Issue
Block a user