|
@@ -4,18 +4,13 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.diagbot.dto.GetTopPatientInfoDTO;
|
|
|
import com.diagbot.dto.PatientInfoDTO;
|
|
|
import com.diagbot.entity.PatientInfo;
|
|
|
-import com.diagbot.exception.CommonErrorCode;
|
|
|
-import com.diagbot.exception.CommonException;
|
|
|
import com.diagbot.service.impl.PatientInfoServiceImpl;
|
|
|
import com.diagbot.util.DateUtil;
|
|
|
-import com.diagbot.util.ListUtil;
|
|
|
import com.diagbot.vo.GetTopPatientInfoVO;
|
|
|
import com.diagbot.vo.PatientInfoVO;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
/**
|
|
|
* @Description: 患者业务逻辑
|
|
|
* @author: wangyu
|
|
@@ -30,13 +25,9 @@ public class PatientInfoFacade extends PatientInfoServiceImpl {
|
|
|
* @param patientInfoVO
|
|
|
* @return
|
|
|
*/
|
|
|
- public List<PatientInfoDTO> getPatientInfo(@RequestBody PatientInfoVO patientInfoVO) {
|
|
|
- List<PatientInfoDTO> patientInfoDTOList = this.getPatientInfos(patientInfoVO.getPatientCode(), patientInfoVO.getHospitalCode());
|
|
|
- if (ListUtil.isEmpty(patientInfoDTOList)) {
|
|
|
- throw new CommonException(CommonErrorCode.NOT_EXISTS,
|
|
|
- "获取患者信息失败");
|
|
|
- }
|
|
|
- return patientInfoDTOList;
|
|
|
+ public PatientInfoDTO getPatientInfo(@RequestBody PatientInfoVO patientInfoVO) {
|
|
|
+ PatientInfoDTO patientInfoDTO = this.getPatientInfos(patientInfoVO.getPatientCode(), patientInfoVO.getHospitalCode());
|
|
|
+ return patientInfoDTO;
|
|
|
}
|
|
|
|
|
|
/**
|