cqpCow 2 年之前
父节点
当前提交
375474322d
共有 1 个文件被更改,包括 0 次插入6 次删除
  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'])
             $bool = Employee::where('number',$data['number'])
                 ->where('id','<>',$data['id'])
                 ->where('id','<>',$data['id'])
                 ->where('del_time',0)->exists();
                 ->where('del_time',0)->exists();
-            $bool_account = Employee::where('account',$data['account'])
-                ->where('id','<>',$data['id'])
-                ->where('del_time',0)->exists();
         }else{
         }else{
             $bool = Employee::where('number',$data['number'])
             $bool = Employee::where('number',$data['number'])
                 ->where('del_time',0)->exists();
                 ->where('del_time',0)->exists();
-            $bool_account = Employee::where('account',$data['account'])
-                ->where('del_time',0)->exists();
         }
         }
         if($bool) return [false,'工号已存在!'];
         if($bool) return [false,'工号已存在!'];
-        if($bool_account) return [false,'账号已存在!'];
 
 
         return [true,''];
         return [true,''];
     }
     }