|
|
@@ -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();
|
|
|
}
|
|
|
}
|