@@ -130,9 +130,23 @@ class Staff extends Api
}
// 1. 查询人员基础信息
- $staffList = db('人员_基本资料')->alias('a')
+ $staffList = db('人员_基本资料')
+ ->field('
+ id,
+ staff_no as 员工编号,
+ staff_name as 员工姓名,
+ gender as 性别,
+ team_id,
+ team_name as 所在小组,
+ big_process as 生产工序,
+ position as 职称职务,
+ dept_name as 所在部门,
+ status as 状态,
+ sys_rq as 创建日期,
+ sys_id as 创建人员
+ ')
->where($where)
- ->whereNull('a.mod_rq')
+ ->whereNull('mod_rq')
->select();
$this->success('获取员工资料', $staffList);