From 9b7276962baf47b07b2ebe2ee416a3cc23043cef Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Wed, 28 Feb 2024 17:44:27 +0800 Subject: [PATCH] update --- .../lists/supervision_work/SupervisionDeviceEntryLists.php | 3 +++ 1 file changed, 3 insertions(+) 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(); }