cqpCow 1 년 전
부모
커밋
c791999af4
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      app/Service/EmployeeService.php

+ 3 - 0
app/Service/EmployeeService.php

@@ -170,6 +170,9 @@ class EmployeeService extends Service
         Employee::whereIn('id',$data['id'])->update([
             'del_time'=>time()
         ]);
+        EmployeeRole::where('del_time',0)->whereIn('employee_id',$data['id'])->update([
+            'del_time'=>time()
+        ]);
 
         return [true,'删除成功'];
     }