This commit is contained in:
weiz 2024-02-28 17:44:27 +08:00
parent d8a8eb903a
commit 9b7276962b

View File

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