cqpCow hace 1 año
padre
commit
c791999af4
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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,'删除成功'];
     }