|
|
@@ -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, ''];
|
|
|
}
|