From 1ff4142f21d19a9ea5be10f3c4d32cec7e82cdb6 Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Wed, 17 Sep 2025 17:45:03 +0800 Subject: [PATCH] kpi --- app/admin/targets/controller/StatisticsController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/admin/targets/controller/StatisticsController.php b/app/admin/targets/controller/StatisticsController.php index 14745c0..950f247 100644 --- a/app/admin/targets/controller/StatisticsController.php +++ b/app/admin/targets/controller/StatisticsController.php @@ -87,9 +87,11 @@ class StatisticsController extends BaseController for($i = 1; $i <= 12; $i++){ $result[$key]['month'][$i] = $result[$key]['month'][$i]??0; } + $result[$key]['month'] = array_values($result[$key]['month']); $result[$key]['corp_name'] = Corp::where(['id' => $value['corp_id']])->value('name'); $result[$key]['user_name'] = User::where(['id' => $value['user_id']])->value('name'); } + $result = array_values($result); return $this->success($result); }