From 3357ee6a7918a7bc7d64e2e22b7c6914850fee5f Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Tue, 7 Nov 2023 15:21:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BB=9F=E8=AE=A1=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/HomeIndex.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/api/controller/HomeIndex.php b/app/api/controller/HomeIndex.php index 94a0d73..2abf392 100644 --- a/app/api/controller/HomeIndex.php +++ b/app/api/controller/HomeIndex.php @@ -42,7 +42,7 @@ class HomeIndex extends ApiController $this->uid = JWT_UID; $total = []; $noteCount = Db::name('Note')->where('status', '1')->count(); - $approveCount = Db::name('Approve')->where([['', 'exp', Db::raw("FIND_IN_SET('{$this->uid}',check_admin_ids)")]])->count(); + $approveCount = Db::name('Approve')->where([['', 'exp', Db::raw("FIND_IN_SET('{$this->uid}',check_admin_ids)")]])->fetchSql(false)->count(); $expenseCount = Db::name('Expense')->where([['', 'exp', Db::raw("FIND_IN_SET('{$this->uid}',check_admin_ids)")],['delete_time', '=', 0]])->count(); $invoiceCount = Db::name('Invoice')->where([['', 'exp', Db::raw("FIND_IN_SET('{$this->uid}',check_admin_ids)")],['delete_time', '=', 0]])->count(); @@ -52,17 +52,17 @@ class HomeIndex extends ApiController 'num' => $noteCount, ); $total[] = array( - 'name' => '审批', + 'name' => '待审审批', 'type' => 'approve', 'num' => $approveCount, ); $total[] = array( - 'name' => '报销', + 'name' => '待审报销', 'type' => 'expense', 'num' => $expenseCount, ); $total[] = array( - 'name' => '发票', + 'name' => '待审发票', 'type' => 'invoice', 'num' => $invoiceCount, );