From 8e7dd34b923cd9af2d3122ea29a475a0e5285cab Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Mon, 16 Mar 2020 15:18:45 +0800 Subject: [PATCH] upt --- Application/Admin/Controller/ExportController.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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","用户-玩家组工单管理-导出");