master
yulingwei 5 years ago
parent dec978da7a
commit f1428a8fe7

@ -9219,7 +9219,7 @@ class ExportController extends Controller
count(*) AS total_create_count,
count(
IF (i.`handler_id` = 0, 1, NULL)
IF (i.`handler_id` > 0, 1, NULL)
) AS total_accepted_count,
NULL AS total_handle_count,
NULL AS total_complete_count
@ -9239,7 +9239,7 @@ class ExportController extends Controller
count(IF(i.`status` = 1, 1, NULL)) AS total_complete_count
FROM
sys_member u
LEFT JOIN tab_work_order_info i ON i.handler_id = u.uid
JOIN tab_work_order_info i ON i.handler_id = u.uid
WHERE
u.uid in ({$userids})
GROUP BY u.uid
@ -9248,7 +9248,6 @@ class ExportController extends Controller
GROUP BY t.id
$order");
}
$xlsName = '工单统计报表';
$xlsCell = array(
array('nickname', "账号"),

@ -397,7 +397,7 @@ class WorkOrderController extends ThinkController
count(*) AS total_create_count,
count(
IF (i.`handler_id` = 0, 1, NULL)
IF (i.`handler_id` > 0, 1, NULL)
) AS total_accepted_count,
NULL AS total_handle_count,
NULL AS total_complete_count
@ -417,7 +417,7 @@ class WorkOrderController extends ThinkController
count(IF(i.`status` = 1, 1, NULL)) AS total_complete_count
FROM
sys_member u
LEFT JOIN tab_work_order_info i ON i.handler_id = u.uid
JOIN tab_work_order_info i ON i.handler_id = u.uid
WHERE
u.uid in ({$userids})
GROUP BY u.uid

@ -120,8 +120,8 @@
<td>{$data.nickname}</td>
<td>{$data.total_create_count}</td>
<td>{$data.total_accepted_count}</td>
<td>{$data.total_handle_count}</td>
<td>{$data.total_complete_count}</td>
<td>{$data.total_handle_count | default=0}</td>
<td>{$data.total_complete_count | default=0}</td>
</tr>
</volist>
</empty>

Loading…
Cancel
Save