|
@@ -1,10 +1,5 @@
|
|
package com.diagbot.facade;
|
|
package com.diagbot.facade;
|
|
|
|
|
|
-import java.util.List;
|
|
|
|
-
|
|
|
|
-import org.springframework.stereotype.Component;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
-
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.diagbot.dto.GetTopPatientInfoDTO;
|
|
import com.diagbot.dto.GetTopPatientInfoDTO;
|
|
import com.diagbot.dto.PatientInfoDTO;
|
|
import com.diagbot.dto.PatientInfoDTO;
|
|
@@ -15,6 +10,10 @@ import com.diagbot.service.impl.PatientInfoServiceImpl;
|
|
import com.diagbot.util.ListUtil;
|
|
import com.diagbot.util.ListUtil;
|
|
import com.diagbot.vo.GetTopPatientInfoVO;
|
|
import com.diagbot.vo.GetTopPatientInfoVO;
|
|
import com.diagbot.vo.PatientInfoVO;
|
|
import com.diagbot.vo.PatientInfoVO;
|
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
+
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @Description: 患者业务逻辑
|
|
* @Description: 患者业务逻辑
|
|
@@ -30,7 +29,7 @@ public class PatientInfoFacade extends PatientInfoServiceImpl {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public List<PatientInfoDTO> getPatientInfo(@RequestBody PatientInfoVO patientInfoVO) {
|
|
public List<PatientInfoDTO> getPatientInfo(@RequestBody PatientInfoVO patientInfoVO) {
|
|
- List<PatientInfoDTO> patientInfoDTOList = this.getPatientInfos(patientInfoVO.getPatientCode(),patientInfoVO.getHosptialCode());
|
|
|
|
|
|
+ List<PatientInfoDTO> patientInfoDTOList = this.getPatientInfos(patientInfoVO.getPatientCode(),patientInfoVO.getHospitalCode());
|
|
if(ListUtil.isEmpty(patientInfoDTOList)){
|
|
if(ListUtil.isEmpty(patientInfoDTOList)){
|
|
throw new CommonException(CommonErrorCode.NOT_EXISTS,
|
|
throw new CommonException(CommonErrorCode.NOT_EXISTS,
|
|
"获取患者信息失败");
|
|
"获取患者信息失败");
|