更新审批应用

This commit is contained in:
yaooo 2023-11-07 15:29:48 +08:00
parent 3357ee6a79
commit e4c61b1979
1 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ class HomeIndex extends ApiController
$invoiceCount = Db::name('Invoice')->where([['', 'exp', Db::raw("FIND_IN_SET('{$this->uid}',check_admin_ids)")],['delete_time', '=', 0]])->count();
$total[] = array(
'name' => '公告',
'name' => '公司公告',
'type' => 'note',
'num' => $noteCount,
);
@ -75,13 +75,13 @@ class HomeIndex extends ApiController
$whereProject[] = ['id', 'in', $project_ids];
$projectCount = Db::name('Project')->where($whereProject)->fetchSql(false)->count();
$total[] = array(
'name' => '项目',
'name' => '项我的目',
'type' => 'project',
'num' => $projectCount,
);
$taskCount = Db::name('ProjectTask')->where([['director_uid', '=', $this->uid],['flow_status', '<', 3],['delete_time', '=', 0]])->count();
$total[] = array(
'name' => '任务',
'name' => '我的任务',
'type' => 'task',
'num' => $taskCount,
);
@ -89,7 +89,7 @@ class HomeIndex extends ApiController
if (in_array('article', $module)) {
$articleCount = Db::name('Article')->where([['delete_time', '=', 0],['uid', '=', $this->uid]])->count();
$total[] = array(
'name' => '文章',
'name' => '我的文章',
'type' => 'article',
'num' => $articleCount,
);