cqp 3 ヶ月 前
コミット
a4a2119acb
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/Service/EmployeeService.php

+ 1 - 1
app/Service/EmployeeService.php

@@ -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, '密码不能为空'];