Zhouzhendong 4 lat temu
rodzic
commit
4c608db816
1 zmienionych plików z 3 dodań i 1 usunięć
  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();
     }
 }