|
@@ -1,13 +1,18 @@
|
|
package com.diagbot.facade;
|
|
package com.diagbot.facade;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
|
+
|
|
import com.diagbot.client.AiptServiceClient;
|
|
import com.diagbot.client.AiptServiceClient;
|
|
|
|
+import com.diagbot.client.TranServiceClient;
|
|
import com.diagbot.dto.GetTopPatientInfoDTO;
|
|
import com.diagbot.dto.GetTopPatientInfoDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
|
|
+import com.diagbot.dto.SignInDTO;
|
|
import com.diagbot.util.RespDTOUtil;
|
|
import com.diagbot.util.RespDTOUtil;
|
|
import com.diagbot.vo.GetTopPatientInfoVO;
|
|
import com.diagbot.vo.GetTopPatientInfoVO;
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
-import org.springframework.stereotype.Component;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
+import com.diagbot.vo.SignInVO;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @Description: 患者业务逻辑
|
|
* @Description: 患者业务逻辑
|
|
@@ -19,6 +24,9 @@ public class PatientInfoFacade {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private AiptServiceClient aiptServiceClient;
|
|
private AiptServiceClient aiptServiceClient;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private TranServiceClient tranServiceClient;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 页面顶部病人医生科室信息查询
|
|
* 页面顶部病人医生科室信息查询
|
|
@@ -26,7 +34,7 @@ public class PatientInfoFacade {
|
|
* @param getTopPatientInfoVO
|
|
* @param getTopPatientInfoVO
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public GetTopPatientInfoDTO getTopPatientInfo(@RequestBody GetTopPatientInfoVO getTopPatientInfoVO) {
|
|
|
|
|
|
+ public GetTopPatientInfoDTO getTopPatientInfo(GetTopPatientInfoVO getTopPatientInfoVO) {
|
|
RespDTO<GetTopPatientInfoDTO> respDTO = aiptServiceClient.getTopPatientInfo(getTopPatientInfoVO);
|
|
RespDTO<GetTopPatientInfoDTO> respDTO = aiptServiceClient.getTopPatientInfo(getTopPatientInfoVO);
|
|
RespDTOUtil.respNGDealCover(respDTO, "获取页面顶部病人医生科室信息失败");
|
|
RespDTOUtil.respNGDealCover(respDTO, "获取页面顶部病人医生科室信息失败");
|
|
|
|
|
|
@@ -34,5 +42,17 @@ public class PatientInfoFacade {
|
|
|
|
|
|
return getTopPatientInfoDTO;
|
|
return getTopPatientInfoDTO;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 患者登录
|
|
|
|
+ * @param signInVO
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public List<SignInDTO> signIn(SignInVO signInVO) {
|
|
|
|
+ RespDTO<List<SignInDTO>> respDTO = tranServiceClient.signIn(signInVO);
|
|
|
|
+ RespDTOUtil.respNGDealCover(respDTO, "患者登录失败");
|
|
|
|
+ return respDTO.data;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|