|
|
@@ -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>>>() {
|