新增 获取检测疾病分类列表 接口

This commit is contained in:
2023-07-27 09:11:26 +08:00
parent 822756c39c
commit 174770cdb3
7 changed files with 123 additions and 6 deletions
+21
View File
@@ -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());
}
}
+1 -1
View File
@@ -39,7 +39,7 @@ class DetectionService extends BaseService
}
/**
* 获取合作公司检测项目
* 获取合作公司检测项目详情
* @return array
*/
public function getDetectionProject(): array