Explorar o código

历史病历接口修改

rengb %!s(int64=5) %!d(string=hai) anos
pai
achega
ff09b20ec8

+ 1 - 1
prec-service/src/main/java/com/diagbot/facade/InquiryInfoFacade.java

@@ -240,7 +240,7 @@ public class InquiryInfoFacade extends InquiryInfoServiceImpl {
             i.setPatientAge(DateUtil.yearCompare(i.getPatientBirthday(), DateUtil.now()));
         });
 
-        if (hisInquirysVO.getIsHaveDetail() == 1) {
+        if (ListUtil.isNotEmpty(hisInquiryDTOList) && hisInquirysVO.getIsHaveDetail() == 1) {
             List<Long> inquiryIdList = hisInquiryDTOList.stream().map(i -> i.getId()).collect(Collectors.toList());
 
             QueryWrapper<InquiryDetail> inquiryDetailQe = new QueryWrapper<>();