update
This commit is contained in:
parent
b44b6f5adb
commit
352238fd94
|
@ -230,6 +230,13 @@ class User extends CI_Controller
|
||||||
a.oaid,
|
a.oaid,
|
||||||
a.department_id,
|
a.department_id,
|
||||||
b.name as user_type_name,
|
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
|
c.cardno
|
||||||
FROM
|
FROM
|
||||||
tb_user a
|
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($listFL[$row['id']]) ? $listFL[$row['id']] : 0);
|
||||||
array_push($info, isset($listPc[$row['id']]) ? $listPc[$row['id']] : 0);
|
array_push($info, isset($listPc[$row['id']]) ? $listPc[$row['id']] : 0);
|
||||||
array_push($info, $row['birthday']);
|
array_push($info, $row['birthday']);
|
||||||
|
array_push($info, $row['enabled']);
|
||||||
array_push($list, $info);
|
array_push($list, $info);
|
||||||
}
|
}
|
||||||
$title = array('用户名', '区域', '饭堂', '手机号', '类型', '员工编号', 'IC卡号', '部门', '现金', '福利', '配餐','生日');
|
$title = array('用户名', '区域', '饭堂', '手机号', '类型', '员工编号', 'IC卡号', '部门', '现金', '福利', '配餐','生日','状态');
|
||||||
$excelPath = $this->lw_excel->get_excel_by_list($title, $list, 'userExcel');
|
$excelPath = $this->lw_excel->get_excel_by_list($title, $list, 'userExcel');
|
||||||
$data = array('success' => true, 'msg' => $excelPath);
|
$data = array('success' => true, 'msg' => $excelPath);
|
||||||
echo json_encode($data);
|
echo json_encode($data);
|
||||||
|
|
Loading…
Reference in New Issue