cqp 3 weeks ago
parent
commit
90c4381a6b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Service/EmployeeService.php

+ 2 - 2
app/Service/EmployeeService.php

@@ -442,11 +442,11 @@ class EmployeeService extends Service
             'del_time' => time()
         ]);
 
-        RoleMenu::whereIn('del_time',0)->where('role_id',$data['id'])->update([
+        RoleMenu::where('del_time',0)->whereIn('role_id',$data['id'])->update([
             'del_time' => time()
         ]);
 
-        RoleMenuButton::whereIn('del_time',0)->where('role_id',$data['id'])->update([
+        RoleMenuButton::where('del_time',0)->whereIn('role_id',$data['id'])->update([
             'del_time' => time()
         ]);