|
|
@ -10,10 +10,7 @@ import com.ccsens.util.bean.dto.QueryDto; |
|
|
|
import com.ccsens.util.CodeEnum; |
|
|
|
import com.ccsens.util.exception.BaseException; |
|
|
|
import com.ccsens.wisdomcar.bean.dto.PatientAndFamilyDto; |
|
|
|
import com.ccsens.wisdomcar.bean.po.HospitalMember; |
|
|
|
import com.ccsens.wisdomcar.bean.po.HospitalMemberExample; |
|
|
|
import com.ccsens.wisdomcar.bean.po.PatientFamily; |
|
|
|
import com.ccsens.wisdomcar.bean.po.PatientProject; |
|
|
|
import com.ccsens.wisdomcar.bean.po.*; |
|
|
|
import com.ccsens.wisdomcar.bean.vo.PatientAndFamilyVo; |
|
|
|
import com.ccsens.wisdomcar.bean.vo.PatientVo; |
|
|
|
import com.ccsens.wisdomcar.persist.dao.HospitalMemberDao; |
|
|
@ -144,6 +141,16 @@ public class PatientAndFamilyService implements IPatientAndFamilyService{ |
|
|
|
throw new BaseException(CodeEnum.PARAM_ERROR); |
|
|
|
} |
|
|
|
PatientAndFamilyVo.PatientInfo patientInfo = patientProjectDao.queryPatientInfo(param.getProjectId()); |
|
|
|
if(ObjectUtil.isNull(patientInfo)){ |
|
|
|
throw new BaseException(CodeEnum.PARAM_ERROR); |
|
|
|
} |
|
|
|
PatientFamilyExample patientFamilyExample = new PatientFamilyExample(); |
|
|
|
patientFamilyExample.createCriteria().andPatientIdEqualTo(patientInfo.getId()); |
|
|
|
List<PatientFamily> patientFamilies = patientFamilyDao.selectByExample(patientFamilyExample); |
|
|
|
if(CollectionUtil.isNotEmpty(patientFamilies)){ |
|
|
|
patientInfo.setFamilyName(patientFamilies.get(0).getName()); |
|
|
|
patientInfo.setFamilyPhone(patientFamilies.get(0).getPhone()); |
|
|
|
} |
|
|
|
return patientInfo; |
|
|
|
} |
|
|
|
} |
|
|
|