|
@ -2,6 +2,7 @@ package com.yihu.jw.patient.endpoint.servicepackage;
|
|
|
|
|
|
import com.yihu.jw.entity.base.dict.DictHospitalDeptDO;
|
|
import com.yihu.jw.entity.base.dict.DictHospitalDeptDO;
|
|
import com.yihu.jw.entity.base.doctor.BaseDoctorDO;
|
|
import com.yihu.jw.entity.base.doctor.BaseDoctorDO;
|
|
|
|
import com.yihu.jw.entity.base.doctor.BaseDoctorHospitalDO;
|
|
import com.yihu.jw.entity.base.label.PatientLabelDO;
|
|
import com.yihu.jw.entity.base.label.PatientLabelDO;
|
|
import com.yihu.jw.entity.base.org.BaseOrgDO;
|
|
import com.yihu.jw.entity.base.org.BaseOrgDO;
|
|
import com.yihu.jw.entity.base.servicePackage.ServicePackageDO;
|
|
import com.yihu.jw.entity.base.servicePackage.ServicePackageDO;
|
|
@ -9,6 +10,7 @@ import com.yihu.jw.entity.base.servicePackage.ServicePackageItemDO;
|
|
import com.yihu.jw.entity.base.servicePackage.ServicePackageSignRecordDO;
|
|
import com.yihu.jw.entity.base.servicePackage.ServicePackageSignRecordDO;
|
|
import com.yihu.jw.patient.service.servicepackage.PackageService;
|
|
import com.yihu.jw.patient.service.servicepackage.PackageService;
|
|
import com.yihu.jw.restmodel.base.dict.DictHospitalDeptVO;
|
|
import com.yihu.jw.restmodel.base.dict.DictHospitalDeptVO;
|
|
|
|
import com.yihu.jw.restmodel.base.doctor.BaseDoctorHospitalVO;
|
|
import com.yihu.jw.restmodel.base.doctor.BaseDoctorSimpleVO;
|
|
import com.yihu.jw.restmodel.base.doctor.BaseDoctorSimpleVO;
|
|
import com.yihu.jw.restmodel.base.label.BasePatientLabelVO;
|
|
import com.yihu.jw.restmodel.base.label.BasePatientLabelVO;
|
|
import com.yihu.jw.restmodel.base.org.BaseOrgVO;
|
|
import com.yihu.jw.restmodel.base.org.BaseOrgVO;
|
|
@ -131,6 +133,12 @@ public class PackageServiceEndpoint extends EnvelopRestEndpoint {
|
|
@RequestParam(value = "doctorCode", required = true)String doctorCode) {
|
|
@RequestParam(value = "doctorCode", required = true)String doctorCode) {
|
|
BaseDoctorDO baseDoctorDO = packageService.findDoctorById(doctorCode);
|
|
BaseDoctorDO baseDoctorDO = packageService.findDoctorById(doctorCode);
|
|
BaseDoctorSimpleVO baseDoctorSimpleVO = convertToModel(baseDoctorDO,BaseDoctorSimpleVO.class);
|
|
BaseDoctorSimpleVO baseDoctorSimpleVO = convertToModel(baseDoctorDO,BaseDoctorSimpleVO.class);
|
|
|
|
|
|
|
|
List<BaseDoctorHospitalDO> baseDoctorHospitalDOs = packageService.findDoctorHospital(doctorCode);
|
|
|
|
List<BaseDoctorHospitalVO> baseDoctorHospitalVOs = new ArrayList<>();
|
|
|
|
convertToModels(baseDoctorHospitalDOs,baseDoctorHospitalVOs,BaseDoctorHospitalVO.class);
|
|
|
|
baseDoctorSimpleVO.setHospitalVOs(baseDoctorHospitalVOs);
|
|
|
|
|
|
return success(PatientRequestMapping.SignPackage.api_success,baseDoctorSimpleVO);
|
|
return success(PatientRequestMapping.SignPackage.api_success,baseDoctorSimpleVO);
|
|
}
|
|
}
|
|
|
|
|