|
@@ -194,7 +194,7 @@ class Employee extends Controller
|
|
|
// 接收参数
|
|
// 接收参数
|
|
|
$id = request('id', 0);
|
|
$id = request('id', 0);
|
|
|
$map = ['id' => $id];
|
|
$map = ['id' => $id];
|
|
|
- $field = ['id','employee_code', 'name','mobile', 'department_id', 'role_id', 'city_ids', 'open_notice','insert_time','update_time','status'];
|
|
|
|
|
|
|
+ $field = ['id','employee_code', 'name','mobile', 'department_id','duty_type','role_id', 'city_ids', 'open_notice','insert_time','update_time','status'];
|
|
|
$data = $EmployeeModel->where($map)->select($field)->first();
|
|
$data = $EmployeeModel->where($map)->select($field)->first();
|
|
|
if (!$data) return json_send(['code' => 'error', 'msg' => '记录不存在']);
|
|
if (!$data) return json_send(['code' => 'error', 'msg' => '记录不存在']);
|
|
|
// 查询部门信息
|
|
// 查询部门信息
|