|
@@ -1,18 +1,17 @@
|
|
|
package com.diagbot.facade;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
-import org.springframework.stereotype.Component;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-
|
|
|
import com.diagbot.dto.GetTopPatientInfoDTO;
|
|
|
import com.diagbot.dto.PatientInfoDTO;
|
|
|
-import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
|
import com.diagbot.exception.CommonException;
|
|
|
import com.diagbot.service.impl.PatientInfoServiceImpl;
|
|
|
+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: 患者业务逻辑
|
|
@@ -29,7 +28,7 @@ public class PatientInfoFacade extends PatientInfoServiceImpl {
|
|
|
*/
|
|
|
public List<PatientInfoDTO> getPatientInfo(@RequestBody PatientInfoVO patientInfoVO) {
|
|
|
List<PatientInfoDTO> patientInfoDTOList = this.getPatientInfos(patientInfoVO.getPatientCode(),patientInfoVO.getHosptialCode());
|
|
|
- if(patientInfoDTOList == null || patientInfoDTOList.size() == 0){
|
|
|
+ if(ListUtil.isEmpty(patientInfoDTOList)){
|
|
|
throw new CommonException(CommonErrorCode.NOT_EXISTS,
|
|
|
"获取患者信息失败");
|
|
|
}
|