新增 获取检测疾病分类列表 接口
This commit is contained in:
@@ -8,6 +8,7 @@ use App\Model\BasicDoctorTitle;
|
||||
use App\Model\BasicJob;
|
||||
use App\Model\BasicNation;
|
||||
use App\Model\DiseaseClass;
|
||||
use App\Model\DiseaseClassDetection;
|
||||
use App\Model\DiseaseClassExpertise;
|
||||
use App\Model\DiseaseClassIcd;
|
||||
use App\Model\Hospital;
|
||||
@@ -394,4 +395,24 @@ class BasicDataService extends BaseService
|
||||
|
||||
return success($hot_search_keyword->toArray());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取检测疾病分类列表
|
||||
* @return array
|
||||
*/
|
||||
public function getDetectionDiseaseList(): array
|
||||
{
|
||||
$detection_project_id = $this->request->route('detection_project_id',1);
|
||||
|
||||
$params = array();
|
||||
$params['detection_project_id'] = $detection_project_id;
|
||||
$params['status'] = 1;
|
||||
$params['enable'] = 1;
|
||||
$disease_class_detections = DiseaseClassDetection::getList($params);
|
||||
if (empty($disease_class_detections)){
|
||||
return success();
|
||||
}
|
||||
|
||||
return success($disease_class_detections->toArray());
|
||||
}
|
||||
}
|
||||
@@ -39,7 +39,7 @@ class DetectionService extends BaseService
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取合作公司检测项目
|
||||
* 获取合作公司检测项目详情
|
||||
* @return array
|
||||
*/
|
||||
public function getDetectionProject(): array
|
||||
|
||||
Reference in New Issue
Block a user