cqpCow %!s(int64=2) %!d(string=hai) anos
pai
achega
375474322d
Modificáronse 1 ficheiros con 0 adicións e 6 borrados
  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,''];
     }