|
|
@@ -310,7 +310,7 @@ class EmployeeService extends Service
|
|
|
if(! empty($data['education']) && ! isset(Employee::Education[$data['education']])) return [false, '学历不存在'];
|
|
|
if(empty($data['id_card'])) return [false, '身份证号不能为空'];
|
|
|
if(empty($data['depart'])) return [false,'部门不能为空'];
|
|
|
- if(empty($data['is_use'])) return [false,'状态不能为空'];
|
|
|
+ if(empty($data['state'])) return [false,'状态不能为空'];
|
|
|
if(! isset(Employee::State_Type[$data['state']])) return [false,'状态不存在'];
|
|
|
if(! empty($data['is_admin'])){
|
|
|
if(empty($data['password'])) return [false, '密码不能为空'];
|