|
|
@ -91,7 +91,7 @@ class Message extends ApiCommon
|
|
|
|
$todayLeads = $this->todayLeads(true);
|
|
|
|
$todayLeads = $this->todayLeads(true);
|
|
|
|
$data['todayLeads'] = $todayLeads['dataCount'] ? : 0;
|
|
|
|
$data['todayLeads'] = $todayLeads['dataCount'] ? : 0;
|
|
|
|
cache('todayLeadsCount'.$userInfo['id'], $data['todayLeads']);
|
|
|
|
cache('todayLeadsCount'.$userInfo['id'], $data['todayLeads']);
|
|
|
|
cache('todayLeadsTime'.$userInfo['id'], time() + 180);
|
|
|
|
cache('todayLeadsTime'.$userInfo['id'], time() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# 今日需联系客户
|
|
|
|
# 今日需联系客户
|
|
|
|
$todayCustomerTime = cache('todayCustomerTime'.$userInfo['id']);
|
|
|
|
$todayCustomerTime = cache('todayCustomerTime'.$userInfo['id']);
|
|
|
@ -102,7 +102,7 @@ class Message extends ApiCommon
|
|
|
|
$todayCustomer = $this->todayCustomer(true);
|
|
|
|
$todayCustomer = $this->todayCustomer(true);
|
|
|
|
$data['todayCustomer'] = $todayCustomer['dataCount'] ? : 0;
|
|
|
|
$data['todayCustomer'] = $todayCustomer['dataCount'] ? : 0;
|
|
|
|
cache('todayCustomerCount'.$userInfo['id'], $data['todayCustomer']);
|
|
|
|
cache('todayCustomerCount'.$userInfo['id'], $data['todayCustomer']);
|
|
|
|
cache('todayCustomerTime'.$userInfo['id'], time() + 180);
|
|
|
|
cache('todayCustomerTime'.$userInfo['id'], time() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# 今日需联系商机
|
|
|
|
# 今日需联系商机
|
|
|
|
$todayBusinessTime = cache('todayBusinessTime'.$userInfo['id']);
|
|
|
|
$todayBusinessTime = cache('todayBusinessTime'.$userInfo['id']);
|
|
|
@ -113,7 +113,7 @@ class Message extends ApiCommon
|
|
|
|
$todayBusiness = $this->todayBusiness(true);
|
|
|
|
$todayBusiness = $this->todayBusiness(true);
|
|
|
|
$data['todayBusiness'] = $todayBusiness['dataCount'] ? : 0;
|
|
|
|
$data['todayBusiness'] = $todayBusiness['dataCount'] ? : 0;
|
|
|
|
cache('todayBusinessCount'.$userInfo['id'], $data['todayBusiness']);
|
|
|
|
cache('todayBusinessCount'.$userInfo['id'], $data['todayBusiness']);
|
|
|
|
cache('todayBusinessTime'.$userInfo['id'], time() + 180);
|
|
|
|
cache('todayBusinessTime'.$userInfo['id'], time() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# 分配给我的线索
|
|
|
|
# 分配给我的线索
|
|
|
|
$followLeadsTime = cache('followLeadsTime'.$userInfo['id']);
|
|
|
|
$followLeadsTime = cache('followLeadsTime'.$userInfo['id']);
|
|
|
@ -124,7 +124,7 @@ class Message extends ApiCommon
|
|
|
|
$followLeads = $this->followLeads(true);
|
|
|
|
$followLeads = $this->followLeads(true);
|
|
|
|
$data['followLeads'] = $followLeads['dataCount'] ? : 0;
|
|
|
|
$data['followLeads'] = $followLeads['dataCount'] ? : 0;
|
|
|
|
cache('followLeadsCount'.$userInfo['id'], $data['followLeads']);
|
|
|
|
cache('followLeadsCount'.$userInfo['id'], $data['followLeads']);
|
|
|
|
cache('followLeadsTime'.$userInfo['id'], time() + 180);
|
|
|
|
cache('followLeadsTime'.$userInfo['id'], time() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# 分配给我的客户
|
|
|
|
# 分配给我的客户
|
|
|
|
$followCustomerTime = cache('followCustomerTime'.$userInfo['id']);
|
|
|
|
$followCustomerTime = cache('followCustomerTime'.$userInfo['id']);
|
|
|
@ -135,7 +135,7 @@ class Message extends ApiCommon
|
|
|
|
$followCustomer = $this->followCustomer(true);
|
|
|
|
$followCustomer = $this->followCustomer(true);
|
|
|
|
$data['followCustomer'] = $followCustomer['dataCount'] ? : 0;
|
|
|
|
$data['followCustomer'] = $followCustomer['dataCount'] ? : 0;
|
|
|
|
cache('followCustomerCount'.$userInfo['id'], $data['followCustomer']);
|
|
|
|
cache('followCustomerCount'.$userInfo['id'], $data['followCustomer']);
|
|
|
|
cache('followCustomerTime'.$userInfo['id'], time() + 180);
|
|
|
|
cache('followCustomerTime'.$userInfo['id'], time() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# 待审核合同
|
|
|
|
# 待审核合同
|
|
|
|
$checkContractTime = cache('checkContractTime'.$userInfo['id']);
|
|
|
|
$checkContractTime = cache('checkContractTime'.$userInfo['id']);
|
|
|
@ -146,7 +146,7 @@ class Message extends ApiCommon
|
|
|
|
$checkContract = $this->checkContract(true);
|
|
|
|
$checkContract = $this->checkContract(true);
|
|
|
|
$data['checkContract'] = $checkContract['dataCount'] ? : 0;
|
|
|
|
$data['checkContract'] = $checkContract['dataCount'] ? : 0;
|
|
|
|
cache('checkContractCount'.$userInfo['id'], $data['checkContract']);
|
|
|
|
cache('checkContractCount'.$userInfo['id'], $data['checkContract']);
|
|
|
|
cache('checkContractTime'.$userInfo['id'], time() + 180);
|
|
|
|
cache('checkContractTime'.$userInfo['id'], time() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# 待审核回款
|
|
|
|
# 待审核回款
|
|
|
|
$checkReceivablesTime = cache('checkReceivablesTime'.$userInfo['id']);
|
|
|
|
$checkReceivablesTime = cache('checkReceivablesTime'.$userInfo['id']);
|
|
|
@ -157,7 +157,7 @@ class Message extends ApiCommon
|
|
|
|
$checkReceivables = $this->checkReceivables(true);
|
|
|
|
$checkReceivables = $this->checkReceivables(true);
|
|
|
|
$data['checkReceivables'] = $checkReceivables['dataCount'] ? : 0;
|
|
|
|
$data['checkReceivables'] = $checkReceivables['dataCount'] ? : 0;
|
|
|
|
cache('checkReceivablesCount'.$userInfo['id'], $data['checkReceivables']);
|
|
|
|
cache('checkReceivablesCount'.$userInfo['id'], $data['checkReceivables']);
|
|
|
|
cache('checkReceivablesTime'.$userInfo['id'], time() + 180);
|
|
|
|
cache('checkReceivablesTime'.$userInfo['id'], time() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# 待审核发票
|
|
|
|
# 待审核发票
|
|
|
|
$checkInvoiceTime = cache('checkInvoiceTime'.$userInfo['id']);
|
|
|
|
$checkInvoiceTime = cache('checkInvoiceTime'.$userInfo['id']);
|
|
|
@ -170,7 +170,7 @@ class Message extends ApiCommon
|
|
|
|
$data['checkInvoice'] = $checkInvoice['dataCount'] ? : 0;
|
|
|
|
$data['checkInvoice'] = $checkInvoice['dataCount'] ? : 0;
|
|
|
|
|
|
|
|
|
|
|
|
cache('checkInvoiceCount'.$userInfo['id'], $data['checkInvoice']);
|
|
|
|
cache('checkInvoiceCount'.$userInfo['id'], $data['checkInvoice']);
|
|
|
|
cache('checkInvoiceTime'.$userInfo['id'], time() + 180);
|
|
|
|
cache('checkInvoiceTime'.$userInfo['id'], time() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# 待回款提醒
|
|
|
|
# 待回款提醒
|
|
|
|
$remindReceivablesPlanTime = cache('remindReceivablesPlanTime'.$userInfo['id']);
|
|
|
|
$remindReceivablesPlanTime = cache('remindReceivablesPlanTime'.$userInfo['id']);
|
|
|
@ -181,7 +181,7 @@ class Message extends ApiCommon
|
|
|
|
$remindReceivablesPlan = $this->remindReceivablesPlan(true);
|
|
|
|
$remindReceivablesPlan = $this->remindReceivablesPlan(true);
|
|
|
|
$data['remindReceivablesPlan'] = $remindReceivablesPlan['dataCount'] ? : 0;
|
|
|
|
$data['remindReceivablesPlan'] = $remindReceivablesPlan['dataCount'] ? : 0;
|
|
|
|
cache('remindReceivablesPlanCount'.$userInfo['id'], $data['remindReceivablesPlan']);
|
|
|
|
cache('remindReceivablesPlanCount'.$userInfo['id'], $data['remindReceivablesPlan']);
|
|
|
|
cache('remindReceivablesPlanTime'.$userInfo['id'], time() + 180);
|
|
|
|
cache('remindReceivablesPlanTime'.$userInfo['id'], time() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($configData['visit_config'] == 1) {
|
|
|
|
if ($configData['visit_config'] == 1) {
|
|
|
|
# 待回访合同
|
|
|
|
# 待回访合同
|
|
|
@ -193,7 +193,7 @@ class Message extends ApiCommon
|
|
|
|
$visitContract = $this->visitContract(true);
|
|
|
|
$visitContract = $this->visitContract(true);
|
|
|
|
$data['returnVisitRemind'] = $visitContract['dataCount'] ? : 0;
|
|
|
|
$data['returnVisitRemind'] = $visitContract['dataCount'] ? : 0;
|
|
|
|
cache('visitContractCount'.$userInfo['id'], $data['returnVisitRemind']);
|
|
|
|
cache('visitContractCount'.$userInfo['id'], $data['returnVisitRemind']);
|
|
|
|
cache('visitContractTime'.$userInfo['id'], time() + 180);
|
|
|
|
cache('visitContractTime'.$userInfo['id'], time() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# 即将到期合同
|
|
|
|
# 即将到期合同
|
|
|
@ -206,7 +206,7 @@ class Message extends ApiCommon
|
|
|
|
$endContract = $this->endContract(true);
|
|
|
|
$endContract = $this->endContract(true);
|
|
|
|
$data['endContract'] = $endContract['dataCount'] ? : 0;
|
|
|
|
$data['endContract'] = $endContract['dataCount'] ? : 0;
|
|
|
|
cache('endContractCount'.$userInfo['id'], $data['endContract']);
|
|
|
|
cache('endContractCount'.$userInfo['id'], $data['endContract']);
|
|
|
|
cache('endContractTime'.$userInfo['id'], time() + 180);
|
|
|
|
cache('endContractTime'.$userInfo['id'], time() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# 待进入公海提醒
|
|
|
|
# 待进入公海提醒
|
|
|
@ -220,7 +220,7 @@ class Message extends ApiCommon
|
|
|
|
$remindCustomer = $this->remindCustomer(true);
|
|
|
|
$remindCustomer = $this->remindCustomer(true);
|
|
|
|
$data['putInPoolRemind'] = !empty($remindCustomer['dataCount']) ? $remindCustomer['dataCount'] : 0;
|
|
|
|
$data['putInPoolRemind'] = !empty($remindCustomer['dataCount']) ? $remindCustomer['dataCount'] : 0;
|
|
|
|
cache('remindCustomerCount'.$userInfo['id'], $data['putInPoolRemind']);
|
|
|
|
cache('remindCustomerCount'.$userInfo['id'], $data['putInPoolRemind']);
|
|
|
|
cache('remindCustomerTime'.$userInfo['id'], time() + 180);
|
|
|
|
cache('remindCustomerTime'.$userInfo['id'], time() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|