WIN-2308041133\Administrator 6 tháng trước cách đây
mục cha
commit
ddf6e6a783
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/controller/admin/user/Award.php

+ 1 - 1
app/controller/admin/user/Award.php

@@ -118,7 +118,7 @@ class Award extends BaseController
         $data = $this->oil_checkParams($validate);
 //        if (!$this->repository->merExists($this->request->merId(), $id))
 //            return app('json')->fail('数据不存在');
-        $grade = app()->make(OilLevelRepository::class)->getSearch([])->where('grade', $data['grade'])->find();
+        $grade = app()->make(OilLevelRepository::class)->getSearch([])->whereNotIn('id',[$id])->where('grade', $data['grade'])->find();
         if ($grade){
             return app('json')->fail('等级已存在');
         }