更新公共接口
This commit is contained in:
parent
5c06e970c2
commit
b42d7d3480
|
@ -84,11 +84,11 @@ class HomeIndex extends ApiController
|
||||||
$query->whereOr($whereCustomerOr);
|
$query->whereOr($whereCustomerOr);
|
||||||
})
|
})
|
||||||
->count();
|
->count();
|
||||||
$total[] = array(
|
// $total[] = array(
|
||||||
'name' => '客户',
|
// 'name' => '客户',
|
||||||
'type' => 'customer',
|
// 'type' => 'customer',
|
||||||
'num' => $customerCount,
|
// 'num' => $customerCount,
|
||||||
);
|
// );
|
||||||
}
|
}
|
||||||
if (in_array('contract', $module)) {
|
if (in_array('contract', $module)) {
|
||||||
$whereContract = array();
|
$whereContract = array();
|
||||||
|
@ -110,11 +110,11 @@ class HomeIndex extends ApiController
|
||||||
$query->whereOr($whereContractOr);
|
$query->whereOr($whereContractOr);
|
||||||
})
|
})
|
||||||
->count();
|
->count();
|
||||||
$total[] = array(
|
// $total[] = array(
|
||||||
'name' => '合同',
|
// 'name' => '合同',
|
||||||
'type' => 'contract',
|
// 'type' => 'contract',
|
||||||
'num' => $contractCount,
|
// 'num' => $contractCount,
|
||||||
);
|
// );
|
||||||
}
|
}
|
||||||
if (in_array('project', $module)) {
|
if (in_array('project', $module)) {
|
||||||
$project_ids = Db::name('ProjectUser')->where(['uid' => $this->uid, 'delete_time' => 0])->column('project_id');
|
$project_ids = Db::name('ProjectUser')->where(['uid' => $this->uid, 'delete_time' => 0])->column('project_id');
|
||||||
|
|
Loading…
Reference in New Issue