Kaynağa Gözat

修复健康证对接

lighter 6 ay önce
ebeveyn
işleme
0cc369af31

+ 5 - 0
src/main/java/thyyxxk/webserver/service/examinations/InspectionsService.java

@@ -1,5 +1,6 @@
 package thyyxxk.webserver.service.examinations;
 
+import cn.hutool.core.util.StrUtil;
 import lombok.RequiredArgsConstructor;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.core.ParameterizedTypeReference;
@@ -37,6 +38,10 @@ public class InspectionsService {
     public List<JyIndexResponse> queryJyIndex(ReportIndexInquiry inquiry) {
         String url = apiUrl.getTirdpartApi() + "/inspection/queryJyIndex";
 
+        if (StrUtil.isBlank(inquiry.getPatNo())) {
+            inquiry.setPatNo(inquiry.getContent());
+        }
+
         ResultVo<List<JyIndexResponse>> response = template.exchange(
                 url, HttpMethod.POST, new HttpEntity<>(inquiry),
                 new ParameterizedTypeReference<ResultVo<List<JyIndexResponse>>>() {