vali há 6 anos atrás
pai
commit
677ca4e629
1 ficheiros alterados com 11 adições e 11 exclusões
  1. 11 11
      application/admin/controller/Report.php

+ 11 - 11
application/admin/controller/Report.php

@@ -152,13 +152,13 @@ class Report extends Base
             'allChat' => $allChat,
             'allService' => $allService,
             'allQueue' => $allQueue,
-            'transfer' => floor($transfer/2),
-            'reply' => sprintf("%.2f",(($reply/($allChatLog-$reply))*100)),
-            'waitTime' => ceil($alllWaitTime/$allService),
-            'serviceTime' => ceil($serviceTime/$allService),
-            'cpdTime' => ceil($cpdTime/$allService),
-            'evaluateGood' => sprintf("%.2f",(($evaluateGood/($evaluateGood+$evaluateSecondary+$evaluateBad))*100)),
-            'evaluateGet' => sprintf("%.2f",((($evaluateGood+$evaluateSecondary+$evaluateBad)/($evaluateNo+$evaluateGood+$evaluateSecondary+$evaluateBad))*100)),
+            'transfer' => floor($transfer / 2),
+            'reply' => sprintf("%.2f", (($reply / ($allChatLog - $reply)) * 100)),
+            'waitTime' => ceil($alllWaitTime / $allService),
+            'serviceTime' => ceil($serviceTime / $allService),
+            'cpdTime' => ceil($cpdTime / $allService),
+            'evaluateGood' => sprintf("%.2f", (($evaluateGood / ($evaluateGood + $evaluateSecondary + $evaluateBad)) * 100)),
+            'evaluateGet' => sprintf("%.2f", ((($evaluateGood + $evaluateSecondary + $evaluateBad) / ($evaluateNo + $evaluateGood + $evaluateSecondary + $evaluateBad)) * 100)),
             'evaluate' => json_encode([
                 'evaluateGood' => $evaluateGood,
                 'evaluateSecondary' => $evaluateSecondary,
@@ -217,8 +217,8 @@ class Report extends Base
                 $retall = $this->reportDataFormat($ret1, $ret2, $uidarr['objs'], $zoneArray1, $limit, $offset);
                 return json($retall);
             } else {
-                $title = ['账号', '姓名', '日期', '首次登陆时间', '最后登出时间', '登陆时长', '休息时长', '隐身时长', '在线占比', '休息占比', '', '隐身占比'];
-                $titleKey = ['account', 'uname', 'day', 'of0', 'of1', 'all', 's1', 's2', 's3', 's1p', 's2p', 's3p'];
+                $title = ['账号', '姓名', '日期', '首次登陆时间', '最后登出时间', '在线时长', '登陆时长', '隐身时长', '休息时长', '在线占比', '隐身占比', '休息占比'];
+                $titleKey = ['account', 'uname', 'day', 'of1', 'of0', 'all', 's1', 's2', 's3', 's1p', 's2p', 's3p'];
                 $retall = $this->reportDataFormat($ret1, $ret2, $uidarr['objs'], $zoneArray1, $limit, $offset, true);
                 (new Office())->outdata('考勤数据导出', $retall, $title, $titleKey);
                 return true;
@@ -383,8 +383,8 @@ class Report extends Base
             $param = input('param.');
             $limit = $param['pageSize'];
             $offset = ($param['pageNumber'] - 1) * $limit;
-            $start = time()-86400;
-            $end = time()-86400;
+            $start = time() - 86400;
+            $end = time() - 86400;
 
             $where = [];
             //用户名称