cqp 3 周之前
父節點
當前提交
90c4381a6b
共有 1 個文件被更改,包括 2 次插入2 次删除
  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()
         ]);