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