更新审批应用
This commit is contained in:
parent
3357ee6a79
commit
e4c61b1979
|
@ -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();
|
$invoiceCount = Db::name('Invoice')->where([['', 'exp', Db::raw("FIND_IN_SET('{$this->uid}',check_admin_ids)")],['delete_time', '=', 0]])->count();
|
||||||
|
|
||||||
$total[] = array(
|
$total[] = array(
|
||||||
'name' => '公告',
|
'name' => '公司公告',
|
||||||
'type' => 'note',
|
'type' => 'note',
|
||||||
'num' => $noteCount,
|
'num' => $noteCount,
|
||||||
);
|
);
|
||||||
|
@ -75,13 +75,13 @@ class HomeIndex extends ApiController
|
||||||
$whereProject[] = ['id', 'in', $project_ids];
|
$whereProject[] = ['id', 'in', $project_ids];
|
||||||
$projectCount = Db::name('Project')->where($whereProject)->fetchSql(false)->count();
|
$projectCount = Db::name('Project')->where($whereProject)->fetchSql(false)->count();
|
||||||
$total[] = array(
|
$total[] = array(
|
||||||
'name' => '项目',
|
'name' => '项我的目',
|
||||||
'type' => 'project',
|
'type' => 'project',
|
||||||
'num' => $projectCount,
|
'num' => $projectCount,
|
||||||
);
|
);
|
||||||
$taskCount = Db::name('ProjectTask')->where([['director_uid', '=', $this->uid],['flow_status', '<', 3],['delete_time', '=', 0]])->count();
|
$taskCount = Db::name('ProjectTask')->where([['director_uid', '=', $this->uid],['flow_status', '<', 3],['delete_time', '=', 0]])->count();
|
||||||
$total[] = array(
|
$total[] = array(
|
||||||
'name' => '任务',
|
'name' => '我的任务',
|
||||||
'type' => 'task',
|
'type' => 'task',
|
||||||
'num' => $taskCount,
|
'num' => $taskCount,
|
||||||
);
|
);
|
||||||
|
@ -89,7 +89,7 @@ class HomeIndex extends ApiController
|
||||||
if (in_array('article', $module)) {
|
if (in_array('article', $module)) {
|
||||||
$articleCount = Db::name('Article')->where([['delete_time', '=', 0],['uid', '=', $this->uid]])->count();
|
$articleCount = Db::name('Article')->where([['delete_time', '=', 0],['uid', '=', $this->uid]])->count();
|
||||||
$total[] = array(
|
$total[] = array(
|
||||||
'name' => '文章',
|
'name' => '我的文章',
|
||||||
'type' => 'article',
|
'type' => 'article',
|
||||||
'num' => $articleCount,
|
'num' => $articleCount,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue