Explorar o código

更新招考系统报名逻辑

sandm hai 1 ano
pai
achega
bc0ba212a2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Repositories/CompanyRepository.php

+ 1 - 1
app/Repositories/CompanyRepository.php

@@ -190,7 +190,7 @@ class CompanyRepository extends BaseRepository
         if (!Schema::hasColumn($this->model->getTable(), $key)) {
             return true;
         }
-        if ($this->model->withTrashed()->where($key, $value)
+        if ($this->model->withTrashed()->where($key, $value)->whereRaw('deleted_at is null')
             ->when($id>0, function ($query) use ($id) {
                 return $query->where('id', '<>', $id);
             })->first()) {