cqp před 3 měsíci
rodič
revize
2603aeeaba
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      app/Service/EmployeeService.php

+ 2 - 2
app/Service/EmployeeService.php

@@ -495,9 +495,9 @@ class EmployeeService extends Service
         if($this->isEmpty($data,'id')) return [false,'ID不能为空'];
 
         $bool = Depart::whereIn('parent_id',$data['id'])->where('del_time',0)->exists();
-        if($bool) return [false,'部门下有子部门'];
+        if($bool) return [false,'部门下有子部门'];
 
-        if($this->checkDepartHasPerson($data['id'])) return [false,'部门下有人员档案'];
+        if($this->checkDepartHasPerson($data['id'])) return [false,'部门下有人员档案'];
 
         return [true, ''];
     }