From 352238fd94ba3c9e296c833b6f285bb28eafa99b Mon Sep 17 00:00:00 2001 From: hxchigd Date: Fri, 28 Jun 2024 16:45:50 +0800 Subject: [PATCH] update --- backstage/application/backstage/controllers/User.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/backstage/application/backstage/controllers/User.php b/backstage/application/backstage/controllers/User.php index acc0a92..4eca6d2 100644 --- a/backstage/application/backstage/controllers/User.php +++ b/backstage/application/backstage/controllers/User.php @@ -230,6 +230,13 @@ class User extends CI_Controller a.oaid, a.department_id, b.name as user_type_name, + case a.enabled + when 1 then '正常' + when 0 then '停用' + when -1 then '锁定' + when -98 then '过期冻结' + when -99 then '删除' + end as enabled, c.cardno FROM tb_user a @@ -308,9 +315,10 @@ class User extends CI_Controller array_push($info, isset($listFL[$row['id']]) ? $listFL[$row['id']] : 0); array_push($info, isset($listPc[$row['id']]) ? $listPc[$row['id']] : 0); array_push($info, $row['birthday']); + array_push($info, $row['enabled']); array_push($list, $info); } - $title = array('用户名', '区域', '饭堂', '手机号', '类型', '员工编号', 'IC卡号', '部门', '现金', '福利', '配餐','生日'); + $title = array('用户名', '区域', '饭堂', '手机号', '类型', '员工编号', 'IC卡号', '部门', '现金', '福利', '配餐','生日','状态'); $excelPath = $this->lw_excel->get_excel_by_list($title, $list, 'userExcel'); $data = array('success' => true, 'msg' => $excelPath); echo json_encode($data);