修复就诊人健康信息默认值,优化医生列表查询速度

This commit is contained in:
2024-11-15 13:35:35 +08:00
parent 78e71a3b92
commit c149e34d3c
2 changed files with 3 additions and 27 deletions

View File

@@ -162,7 +162,9 @@ class DoctorController extends BaseAdminController
return StoreDoctor::find()->select(['store_id'])->where([
'su_id' => $m->id,
'is_delete' => 0
])->with(['store'])->asArray()->all();
])->with(['store' => function ($query) {
return $query->select(['name', 'id']);
}])->asArray()->all();
}
],
DoctorService::class => [