diff --git a/app/adminapi/lists/supervision_work/SupervisionDeviceEntryLists.php b/app/adminapi/lists/supervision_work/SupervisionDeviceEntryLists.php index 51bce38bd..faf9577b7 100644 --- a/app/adminapi/lists/supervision_work/SupervisionDeviceEntryLists.php +++ b/app/adminapi/lists/supervision_work/SupervisionDeviceEntryLists.php @@ -21,6 +21,7 @@ use app\common\model\supervision_project\SupervisionParticipatingUnits; use app\common\model\supervision_project\SupervisionProject; use app\common\model\supervision_work\SupervisionDeviceEntry; use app\common\lists\ListsSearchInterface; +use app\common\model\supervision_work\SupervisionProblem; /** @@ -69,6 +70,8 @@ class SupervisionDeviceEntryLists extends BaseAdminDataLists implements ListsSea $data['company_name'] = $company['unit_name']; $data['create_user_name'] = $create_user['name']; $data['enter_result_text'] = $data->enter_result_text; + $data['problem_num'] = SupervisionProblem::field('id')->where('data_id',$data['id'])->where('data_type',4)->count(); + $data['reply_num'] = SupervisionProblem::field('id')->where('data_id',$data['id'])->where('data_type',4)->where('is_rectification',1)->count(); }) ->toArray(); }