浏览代码

代码优化

wangyu 6 年之前
父节点
当前提交
d136125d12
共有 1 个文件被更改,包括 5 次插入6 次删除
  1. 5 6
      icss-service/src/main/java/com/diagbot/facade/PatientInfoFacade.java

+ 5 - 6
icss-service/src/main/java/com/diagbot/facade/PatientInfoFacade.java

@@ -1,10 +1,5 @@
 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.diagbot.dto.GetTopPatientInfoDTO;
 import com.diagbot.dto.PatientInfoDTO;
@@ -15,6 +10,10 @@ 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: 患者业务逻辑
@@ -30,7 +29,7 @@ public class PatientInfoFacade extends PatientInfoServiceImpl {
      * @return
      */
     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)){
             throw new CommonException(CommonErrorCode.NOT_EXISTS,
                     "获取患者信息失败");