|
@@ -8,13 +8,13 @@ import java.util.Map;
|
|
|
import java.util.Optional;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
-import com.diagbot.enums.IsDeleteEnum;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.diagbot.dto.GetInquiryDetailDTO;
|
|
|
+import com.diagbot.dto.GetLastOtherDTO;
|
|
|
import com.diagbot.dto.HisInquiryDTO;
|
|
|
import com.diagbot.dto.ReadInquiryDTO;
|
|
|
import com.diagbot.dto.SaveInquiryDTO;
|
|
@@ -24,6 +24,7 @@ import com.diagbot.entity.HospitalInfo;
|
|
|
import com.diagbot.entity.InquiryDetail;
|
|
|
import com.diagbot.entity.InquiryInfo;
|
|
|
import com.diagbot.entity.PatientInfo;
|
|
|
+import com.diagbot.enums.IsDeleteEnum;
|
|
|
import com.diagbot.enums.SexTypeEnum;
|
|
|
import com.diagbot.service.impl.InquiryInfoServiceImpl;
|
|
|
import com.diagbot.util.BeanUtil;
|
|
@@ -153,7 +154,9 @@ public class InquiryInfoFacade extends InquiryInfoServiceImpl {
|
|
|
* @param getLastOtherVO
|
|
|
* @return
|
|
|
*/
|
|
|
- public String getLastOther(GetLastOtherVO getLastOtherVO) {
|
|
|
+ public GetLastOtherDTO getLastOther(GetLastOtherVO getLastOtherVO) {
|
|
|
+ GetLastOtherDTO getLastOtherDTO = new GetLastOtherDTO();
|
|
|
+
|
|
|
HospitalInfo hospitalInfo = hospitalInfoFacade.getHospitalByCode(getLastOtherVO.getHospitalCode());
|
|
|
PatientInfo patientInfo = patientInfoFacade.getPatientByCode(getLastOtherVO.getHospitalCode(), getLastOtherVO.getPatientCode());
|
|
|
|
|
@@ -164,10 +167,17 @@ public class InquiryInfoFacade extends InquiryInfoServiceImpl {
|
|
|
InquiryInfo inquiryInfo = baseMapper.getPatientLast(map);
|
|
|
|
|
|
if (inquiryInfo != null) {
|
|
|
- return inquiryInfo.getDataJson();
|
|
|
- }else{
|
|
|
- return null;
|
|
|
+ getLastOtherDTO.setDataJson(inquiryInfo.getDataJson());
|
|
|
+
|
|
|
+ QueryWrapper<InquiryDetail> inquiryDetailQe = new QueryWrapper<>();
|
|
|
+ inquiryDetailQe.eq("inquiry_id", inquiryInfo.getId());
|
|
|
+ inquiryDetailQe.eq("type", 3);
|
|
|
+ InquiryDetail inquiryDetail = inquiryDetailFacade.getOne(inquiryDetailQe);
|
|
|
+ if(inquiryDetail!=null){
|
|
|
+ getLastOtherDTO.setOtherStr(inquiryDetail.getContent());
|
|
|
+ }
|
|
|
}
|
|
|
+ return getLastOtherDTO;
|
|
|
}
|
|
|
|
|
|
/**
|