PatientInfoFacade.java 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package com.diagbot.facade;
  2. import java.util.List;
  3. import com.diagbot.dto.GetTopPatientInfoDjDTO;
  4. import com.diagbot.vo.GetTopPatientInfoDjVO;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.stereotype.Component;
  7. import com.diagbot.client.AiptServiceClient;
  8. import com.diagbot.client.TranServiceClient;
  9. import com.diagbot.dto.RespDTO;
  10. import com.diagbot.dto.SignInDTO;
  11. import com.diagbot.util.RespDTOUtil;
  12. import com.diagbot.vo.SignInVO;
  13. /**
  14. * @Description: 患者业务逻辑
  15. * @author: wangyu
  16. * @time: 2018/11/19 13:19
  17. */
  18. @Component
  19. public class PatientInfoFacade {
  20. @Autowired
  21. private AiptServiceClient aiptServiceClient;
  22. @Autowired
  23. private TranServiceClient tranServiceClient;
  24. /**
  25. * 页面顶部病人医生科室信息查询
  26. *
  27. * @param getTopPatientInfoDjVO
  28. * @return
  29. */
  30. public GetTopPatientInfoDjDTO getTopPatientInfo(GetTopPatientInfoDjVO getTopPatientInfoDjVO) {
  31. RespDTO<GetTopPatientInfoDjDTO> respDTO = aiptServiceClient.getTopPatientInfoDj(getTopPatientInfoDjVO);
  32. RespDTOUtil.respNGDealCover(respDTO, "获取页面顶部病人医生科室信息失败");
  33. GetTopPatientInfoDjDTO getTopPatientInfoDjDTO = respDTO.data;
  34. return getTopPatientInfoDjDTO;
  35. }
  36. /**
  37. * 患者登录
  38. * @param signInVO
  39. * @return
  40. */
  41. public RespDTO<List<SignInDTO>> signIn(SignInVO signInVO) {
  42. //RespDTO<List<SignInDTO>> respDTO = tranServiceClient.signIn(signInVO);
  43. //RespDTOUtil.respNGDealCover(respDTO, "患者登录失败");
  44. return tranServiceClient.signIn(signInVO);
  45. }
  46. }