diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index f78f7713d..2ae5b8614 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -8501,14 +8501,15 @@ class ExportController extends Controller array('attachment_type', '附件') ); - $xlsData = M('work_order_info', 'tab_')->where($map)->order("created_time desc")->select(); + $xlsData = M('work_order_info', 'tab_')->where($map)->order("status desc, created_time desc")->select(); foreach ($xlsData as &$item) { $item['type'] = $item['type'] == 1 ? '资源' : '反馈'; $item['status'] = $item['status'] == 1 ? '完成' : '处理中'; $item['creator'] = get_admin_name($item['creator_id']); - $item['created_time'] = date('Y-m-d h:i:s', $item['created_time']); - $item['attachment_type'] = empty('attachment_url') ? '无' : '有'; + $item['created_time'] = date('Y-m-d H:i:s', $item['created_time']); + $item['attachment_type'] = empty($item['attachment_url']) ? '无' : '有'; + $item['order_no'] = "\t{$item['order_no']}"; } $this->exportAddOperationLog("WorkOrder/list","用户-玩家组工单管理-导出");