Zhouzhendong 4 лет назад
Родитель
Сommit
4c608db816
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      app/Services/ObligationService.php

+ 3 - 1
app/Services/ObligationService.php

@@ -159,7 +159,9 @@ class ObligationService
         if (!$ids || count($ids) == 0){
             return [];
         }
-        return DB::table("department_obligation_owner")->select("owner_id")->whereIn("department_id",$ids)
+        return DB::table("department_obligation_owner")->select("owner_id")
+            ->whereNotNull("failure_time")
+            ->whereIn("department_id",$ids)
             ->groupBy("owner_id")->pluck("owner_id")->toArray();
     }
 }