合并分支 'lyh-server' 到 'master'
超过120小时未处理的工单 查看合并请求 !2704
正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -132,6 +132,9 @@ class TicketCount extends Command | @@ -132,6 +132,9 @@ class TicketCount extends Command | ||
| 132 | $timeout_ratio = round($timeout_num / $ticket_num, 3); | 132 | $timeout_ratio = round($timeout_num / $ticket_num, 3); |
| 133 | } | 133 | } |
| 134 | $date = date('Y-m-d'); | 134 | $date = date('Y-m-d'); |
| 135 | + if(!empty($complete_num)){ | ||
| 136 | + $complete_ratio = round($complete_num / $ticket_num, 2); | ||
| 137 | + } | ||
| 135 | $data = [ | 138 | $data = [ |
| 136 | 'date'=>$date, | 139 | 'date'=>$date, |
| 137 | 'manage_id'=>$item['id'], | 140 | 'manage_id'=>$item['id'], |
| @@ -143,7 +146,7 @@ class TicketCount extends Command | @@ -143,7 +146,7 @@ class TicketCount extends Command | ||
| 143 | 'complete_num'=>$complete_num,//完成工单数量 | 146 | 'complete_num'=>$complete_num,//完成工单数量 |
| 144 | 'dept_id'=>$item['dept_id'], | 147 | 'dept_id'=>$item['dept_id'], |
| 145 | 'timeout_ratio'=>$timeout_ratio ?? null, | 148 | 'timeout_ratio'=>$timeout_ratio ?? null, |
| 146 | - 'complete_ratio'=>round($timeCount / $complete_num, 2) | 149 | + 'complete_ratio'=>$complete_ratio ?? null |
| 147 | ]; | 150 | ]; |
| 148 | //查询当前用户是否当日已有记录 | 151 | //查询当前用户是否当日已有记录 |
| 149 | $ticketManageInfo = $ticketManageCountModel->read(['date'=>$date,'manage_id'=>$item['id']],['id']); | 152 | $ticketManageInfo = $ticketManageCountModel->read(['date'=>$date,'manage_id'=>$item['id']],['id']); |
-
请 注册 或 登录 后发表评论