This commit is contained in:
hxchigd 2024-06-28 16:45:50 +08:00
parent b44b6f5adb
commit 352238fd94
1 changed files with 9 additions and 1 deletions

View File

@ -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);