cqpCow 2 năm trước cách đây
mục cha
commit
375474322d
1 tập tin đã thay đổi với 0 bổ sung6 xóa
  1. 0 6
      app/Service/EmployeeService.php

+ 0 - 6
app/Service/EmployeeService.php

@@ -157,17 +157,11 @@ class EmployeeService extends Service
             $bool = Employee::where('number',$data['number'])
                 ->where('id','<>',$data['id'])
                 ->where('del_time',0)->exists();
-            $bool_account = Employee::where('account',$data['account'])
-                ->where('id','<>',$data['id'])
-                ->where('del_time',0)->exists();
         }else{
             $bool = Employee::where('number',$data['number'])
                 ->where('del_time',0)->exists();
-            $bool_account = Employee::where('account',$data['account'])
-                ->where('del_time',0)->exists();
         }
         if($bool) return [false,'工号已存在!'];
-        if($bool_account) return [false,'账号已存在!'];
 
         return [true,''];
     }