|
|
|
@ -2581,15 +2581,16 @@ class QueryController extends BaseController
|
|
|
|
|
$tfCounts = M('package_download_log', 'tab_')->where($tfMap)->count(); //TF下载量
|
|
|
|
|
$companyCounts = M('package_download_log', 'tab_')->where($companyMap)->count(); //企业签下载量
|
|
|
|
|
$superCounts = M('package_download_log', 'tab_')->where($superMap)->count(); //超级签下载量
|
|
|
|
|
$listData[$key]['tfcounts'] = intval($tfCounts);
|
|
|
|
|
$listData[$key]['tfpercent'] = (intval($tfcounts) / intval($iosCount)) * 100;
|
|
|
|
|
if (intval($iosCount) == 0) {
|
|
|
|
|
$listData[$key]['tfpercent'] = 0;
|
|
|
|
|
}
|
|
|
|
|
$listData[$key]['companycounts'] = intval($companyCounts);
|
|
|
|
|
$listData[$key]['supercounts'] = intval($superCounts);
|
|
|
|
|
$usersCounts = M('user', 'tab_')->where(['promote_id' => $id, 'device_type' => 2])->count();
|
|
|
|
|
$listData[$key]['userscounts'] = intval($usersCounts);
|
|
|
|
|
$listData[$key]['tfcounts'] = intval($tfCounts);
|
|
|
|
|
$listData[$key]['tfpercent'] = number_format((intval($tfCounts) / intval($usersCounts)),2,'.','') * 100;
|
|
|
|
|
|
|
|
|
|
if (intval($usersCounts) == 0) {
|
|
|
|
|
$listData[$key]['tfpercent'] = 0;
|
|
|
|
|
}
|
|
|
|
|
if($promote['level'] == 1) {
|
|
|
|
|
$listData[$key]['belongs_president'] = $promote['account'];
|
|
|
|
|
$listData[$key]['belongs_department'] = "无所属部门长";
|
|
|
|
@ -2620,7 +2621,11 @@ class QueryController extends BaseController
|
|
|
|
|
$listData[$key]['belongs_group'] = $groupAccount;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$totalpercent = number_format($allTFCounts/$allUsersCounts,2,'.','') * 100;
|
|
|
|
|
if ($allUsersCounts == 0) {
|
|
|
|
|
$totalpercent = '0';
|
|
|
|
|
}
|
|
|
|
|
$this->assign('totalpercent', $totalpercent);
|
|
|
|
|
$this->assign('listdata', $listData);
|
|
|
|
|
$this->assign('totaluserscounts', $allUsersCounts);
|
|
|
|
|
$this->assign('totaltfcounts', $allTFCounts);
|
|
|
|
|