|
@@ -14,6 +14,7 @@ import org.thyy.thirdpartapi.inspection.config.InspectionApi;
|
|
|
import org.thyy.thirdpartapi.inspection.dao.InspectionDao;
|
|
|
import org.thyy.thirdpartapi.inspection.request.ReportDetailInquiry;
|
|
|
import org.thyy.thirdpartapi.inspection.request.ReportIndexInquiry;
|
|
|
+import org.thyy.thirdpartapi.inspection.request.jy.JyRequest;
|
|
|
import org.thyy.thirdpartapi.inspection.response.bl.BlIndexResponse;
|
|
|
import org.thyy.thirdpartapi.inspection.response.jc.JcIndexResponse;
|
|
|
import org.thyy.thirdpartapi.inspection.response.jy.*;
|
|
@@ -44,14 +45,20 @@ public class ThyyInspectionImpl implements InspectionInterface {
|
|
|
if (StrUtil.isBlank(apiConfig.getJy())) {
|
|
|
return new ArrayList<>();
|
|
|
}
|
|
|
- JSONObject response = template.postForObject(apiConfig.getJy() + "/self", request, JSONObject.class);
|
|
|
+ JyRequest jyRequest = JyRequest.builder()
|
|
|
+ .patientNumType(request.getPatType())
|
|
|
+ .patientNum(request.getPatNo())
|
|
|
+ .startDate(request.getReqStartTime())
|
|
|
+ .endDate(request.getReqEndTime())
|
|
|
+ .build();
|
|
|
+ JSONObject response = template.postForObject(apiConfig.getJy() + "/self", jyRequest, JSONObject.class);
|
|
|
JSONObject data = getJyJsonData(response);
|
|
|
String items = JSON.toJSONString(data.getJSONArray("items"));
|
|
|
return JSON.parseArray(items, JyIndexResponse.class);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public JyDetailResponse queryJyDetail(ReportIndexInquiry request) {
|
|
|
+ public JyDetailResponse queryJyDetail(ReportDetailInquiry request) {
|
|
|
if (StrUtil.isBlank(apiConfig.getJy())) {
|
|
|
return null;
|
|
|
}
|