|
@@ -8,8 +8,8 @@ import org.springframework.stereotype.Component;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.diagbot.client.AiptServiceClient;
|
|
|
import com.diagbot.client.TranServiceClient;
|
|
|
-import com.diagbot.dto.DeptInfoDTO;
|
|
|
import com.diagbot.dto.GetTopPatientInfoDTO;
|
|
|
import com.diagbot.dto.PatientInfoDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
@@ -17,7 +17,6 @@ import com.diagbot.entity.DoctorPageMode;
|
|
|
import com.diagbot.entity.PatientInfo;
|
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
|
import com.diagbot.util.RespDTOUtil;
|
|
|
-import com.diagbot.vo.DeptInfoVO;
|
|
|
import com.diagbot.vo.GetTopPatientInfoVO;
|
|
|
import com.diagbot.vo.PatientInfoVO;
|
|
|
|
|
@@ -32,9 +31,9 @@ public class PatientInfoFacade {
|
|
|
@Autowired
|
|
|
private DoctorPageModeFacade doctorPageModeFacade;
|
|
|
@Autowired
|
|
|
- private DeptInfoFacade deptInfoFacade;
|
|
|
- @Autowired
|
|
|
TranServiceClient tranServiceClient;
|
|
|
+ @Autowired
|
|
|
+ private AiptServiceClient aiptServiceClient;
|
|
|
|
|
|
/**
|
|
|
* 获取患者信息
|
|
@@ -55,27 +54,11 @@ public class PatientInfoFacade {
|
|
|
* @return
|
|
|
*/
|
|
|
public GetTopPatientInfoDTO getTopPatientInfo(@RequestBody GetTopPatientInfoVO getTopPatientInfoVO) {
|
|
|
- RespDTO<GetTopPatientInfoDTO> respDTO = tranServiceClient.getTopPatientInfo(getTopPatientInfoVO);
|
|
|
- RespDTOUtil.respNGDealCover(respDTO, "页面顶部病人医生科室信息");
|
|
|
+ RespDTO<GetTopPatientInfoDTO> respDTO = aiptServiceClient.getTopPatientInfo(getTopPatientInfoVO);
|
|
|
+ RespDTOUtil.respNGDealCover(respDTO, "获取页面顶部病人医生科室信息失败");
|
|
|
|
|
|
GetTopPatientInfoDTO getTopPatientInfoDTO = respDTO.data;
|
|
|
|
|
|
-// QueryWrapper<DeptInfo> deptInfoQ = new QueryWrapper<>();
|
|
|
-// deptInfoQ.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
-// .eq("name", getTopPatientInfoDTO.getSelfDeptName());
|
|
|
-// DeptInfo deptInfo = deptInfoFacade.getOne(deptInfoQ);
|
|
|
-// if (null != deptInfo) {
|
|
|
-// getTopPatientInfoDTO.setSelfDeptName(deptInfo.getName());
|
|
|
-// getTopPatientInfoDTO.setSelfDeptId(deptInfo.getId());
|
|
|
-// }
|
|
|
-
|
|
|
- DeptInfoVO deptInfoVO = new DeptInfoVO();
|
|
|
- deptInfoVO.setHospitalCode(getTopPatientInfoVO.getHospitalCode());
|
|
|
- deptInfoVO.setDeptCode(getTopPatientInfoVO.getHospitalDeptCode());
|
|
|
- DeptInfoDTO deptInfoDTO = deptInfoFacade.getDeptInfo(deptInfoVO);
|
|
|
- getTopPatientInfoDTO.setSelfDeptId(deptInfoDTO.getConceptId());
|
|
|
- getTopPatientInfoDTO.setSelfDeptName(deptInfoDTO.getName());
|
|
|
-
|
|
|
QueryWrapper<DoctorPageMode> doctorPageModeQe = new QueryWrapper<>();
|
|
|
doctorPageModeQe.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
doctorPageModeQe.eq("doctor_id", getTopPatientInfoDTO.getDoctorId());
|