|
|
|
|
@ -40,14 +40,14 @@ class ChartController extends CommonController
|
|
|
|
|
$list = [
|
|
|
|
|
'common_visit' => [
|
|
|
|
|
// 总预约数
|
|
|
|
|
'total' => Visit::visitQuery(1, $startDate, $endDate, [Visit::AUDIT_STATUS_APPROVED, Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT])->count(),
|
|
|
|
|
'total' => Visit::visitHome(1, $startDate, $endDate, [Visit::AUDIT_STATUS_APPROVED, Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT])->count(),
|
|
|
|
|
// 总入场人数
|
|
|
|
|
'enter_visit' => Visit::visitHome(1, $startDate, $endDate, [Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT]),
|
|
|
|
|
// 离厂统计人数
|
|
|
|
|
'leave_total' => Visit::visitHome(1, $startDate, $endDate, [Visit::AUDIT_STATUS_LEFT]),
|
|
|
|
|
|
|
|
|
|
// 今日总人数
|
|
|
|
|
'today_total' => Visit::visitQuery(1, $today, $today, [Visit::AUDIT_STATUS_APPROVED, Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT])->count(),
|
|
|
|
|
'today_total' => Visit::visitHome(1, $today, $today, [Visit::AUDIT_STATUS_APPROVED, Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT])->count(),
|
|
|
|
|
// 今日入场人数
|
|
|
|
|
'today_enter_visit' => Visit::visitHome(1, $today, $today, [Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT]),
|
|
|
|
|
// 今日离厂
|
|
|
|
|
@ -56,14 +56,14 @@ class ChartController extends CommonController
|
|
|
|
|
],
|
|
|
|
|
'work_visit' => [
|
|
|
|
|
// 总人数
|
|
|
|
|
'total' => Visit::visitQuery(2, $startDate, $endDate, [Visit::AUDIT_STATUS_APPROVED, Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT])->count(),
|
|
|
|
|
'total' => Visit::visitHome(2, $startDate, $endDate, [Visit::AUDIT_STATUS_APPROVED, Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT])->count(),
|
|
|
|
|
// 总入场人数
|
|
|
|
|
'enter_visit' => Visit::visitHome(2, $startDate, $endDate, [Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT]),
|
|
|
|
|
// 离厂统计
|
|
|
|
|
'leave_total' => Visit::visitHome(2, $startDate, $endDate, [Visit::AUDIT_STATUS_LEFT]),
|
|
|
|
|
|
|
|
|
|
// 今日总人数
|
|
|
|
|
'today_total' => Visit::visitQuery(2, $today, $today, [Visit::AUDIT_STATUS_APPROVED, Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT])->count(),
|
|
|
|
|
'today_total' => Visit::visitHome(2, $today, $today, [Visit::AUDIT_STATUS_APPROVED, Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT])->count(),
|
|
|
|
|
// 今日入场人数
|
|
|
|
|
'today_enter_visit' => Visit::visitHome(2, $today, $today, [Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT]),
|
|
|
|
|
// 今日离厂
|
|
|
|
|
@ -71,14 +71,14 @@ class ChartController extends CommonController
|
|
|
|
|
],
|
|
|
|
|
'car_visit' => [
|
|
|
|
|
// 总人数
|
|
|
|
|
'total' => Visit::visitQuery(3, $startDate, $endDate, [Visit::AUDIT_STATUS_APPROVED, Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT])->count(),
|
|
|
|
|
'total' => Visit::visitHome(3, $startDate, $endDate, [Visit::AUDIT_STATUS_APPROVED, Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT])->count(),
|
|
|
|
|
// 总入场人数
|
|
|
|
|
'enter_visit' => Visit::visitHome(3, $startDate, $endDate, [Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT]),
|
|
|
|
|
// 离厂统计
|
|
|
|
|
'leave_total' => Visit::visitHome(3, $startDate, $endDate, [Visit::AUDIT_STATUS_LEFT]),
|
|
|
|
|
|
|
|
|
|
// 今日总人数
|
|
|
|
|
'today_total' => Visit::visitQuery(3, $today, $today, [Visit::AUDIT_STATUS_APPROVED, Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT])->count(),
|
|
|
|
|
'today_total' => Visit::visitHome(3, $today, $today, [Visit::AUDIT_STATUS_APPROVED, Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT])->count(),
|
|
|
|
|
// 今日入场人数
|
|
|
|
|
'today_enter_visit' => Visit::visitHome(3, $today, $today, [Visit::AUDIT_STATUS_ENTERED, Visit::AUDIT_STATUS_LEFT]),
|
|
|
|
|
// 今日离厂
|
|
|
|
|
|