|
@@ -62,24 +62,24 @@ public class InspectionsService {
|
|
|
}
|
|
|
String sendEnd = "<START_TIME>" + param.getStart() + "</START_TIME><END_TIME>" + param.getEnd() + "</END_TIME></message>";
|
|
|
String send0 = sendHead0 + sendEnd;
|
|
|
- String xml0 = invokeService.invokeRemoteMethod("GetLabReportIndex", new Object[]{send0});
|
|
|
- List<ExamIndexResult> list0 = invokeService.analyzeExamIndex(xml0.substring(1, xml0.length() - 1));
|
|
|
+ String xml0 = invokeService.invokeRemoteMethod("GetLabReportIndex", send0);
|
|
|
+ List<ExamIndexResult> list0 = invokeService.analyzeExamIndex(xml0);
|
|
|
if (null != sendHead1) {
|
|
|
String send1 = sendHead1 + sendEnd;
|
|
|
- String xml1 = invokeService.invokeRemoteMethod("GetLabReportIndex", new Object[]{send1});
|
|
|
- List<ExamIndexResult> list1 = invokeService.analyzeExamIndex(xml1.substring(1, xml1.length() - 1));
|
|
|
+ String xml1 = invokeService.invokeRemoteMethod("GetLabReportIndex", send1);
|
|
|
+ List<ExamIndexResult> list1 = invokeService.analyzeExamIndex(xml1);
|
|
|
list0.addAll(list1);
|
|
|
}
|
|
|
if (null != sendHead2) {
|
|
|
String send2 = sendHead2 + sendEnd;
|
|
|
- String xml2 = invokeService.invokeRemoteMethod("GetLabReportIndex", new Object[]{send2});
|
|
|
- List<ExamIndexResult> list2 = invokeService.analyzeExamIndex(xml2.substring(1, xml2.length() - 1));
|
|
|
+ String xml2 = invokeService.invokeRemoteMethod("GetLabReportIndex", send2);
|
|
|
+ List<ExamIndexResult> list2 = invokeService.analyzeExamIndex(xml2);
|
|
|
list0.addAll(list2);
|
|
|
}
|
|
|
if (null != sendHead3) {
|
|
|
String send3 = sendHead3 + sendEnd;
|
|
|
- String xml3 = invokeService.invokeRemoteMethod("GetLabReportIndex", new Object[]{send3});
|
|
|
- List<ExamIndexResult> list3 = invokeService.analyzeExamIndex(xml3.substring(1, xml3.length() - 1));
|
|
|
+ String xml3 = invokeService.invokeRemoteMethod("GetLabReportIndex", send3);
|
|
|
+ List<ExamIndexResult> list3 = invokeService.analyzeExamIndex(xml3);
|
|
|
list0.addAll(list3);
|
|
|
}
|
|
|
return ResultVoUtil.success(list0);
|
|
@@ -118,8 +118,8 @@ public class InspectionsService {
|
|
|
if (null != mzNos && mzNos.size() > 0) {
|
|
|
for (String mzNo : mzNos) {
|
|
|
String mzHead = "<message><PATIENT_TYPE>0</PATIENT_TYPE><PTNT_NO>" + mzNo + "</PTNT_NO>";
|
|
|
- String xml = invokeService.invokeRemoteMethod("GetLabReportIndex", new Object[]{mzHead+xmlEnd});
|
|
|
- List<ExamIndexResult> list = invokeService.analyzeExamIndex(xml.substring(1, xml.length() - 1));
|
|
|
+ String xml = invokeService.invokeRemoteMethod("GetLabReportIndex", mzHead+xmlEnd);
|
|
|
+ List<ExamIndexResult> list = invokeService.analyzeExamIndex(xml);
|
|
|
for (ExamIndexResult index : list) {
|
|
|
if (BooleanUtil.isCovidExam(index.getAPLY_CTNT())) {
|
|
|
results.add(index);
|
|
@@ -130,8 +130,8 @@ public class InspectionsService {
|
|
|
if (null != hshjNos && hshjNos.size() > 0) {
|
|
|
for (HshjPatient hshj : hshjNos) {
|
|
|
String hshjHead = "<message><PATIENT_TYPE>0</PATIENT_TYPE><PTNT_NO>" + hshj.getParentId() + "</PTNT_NO>";
|
|
|
- String xml = invokeService.invokeRemoteMethod("GetLabReportIndex", new Object[]{hshjHead+xmlEnd});
|
|
|
- List<ExamIndexResult> list = invokeService.analyzeExamIndex(xml.substring(1, xml.length() - 1));
|
|
|
+ String xml = invokeService.invokeRemoteMethod("GetLabReportIndex", hshjHead+xmlEnd);
|
|
|
+ List<ExamIndexResult> list = invokeService.analyzeExamIndex(xml);
|
|
|
for (ExamIndexResult index : list) {
|
|
|
if (BooleanUtil.isCovidExam(index.getAPLY_CTNT())) {
|
|
|
index.setPTNT_ID(hshj.getPatientId());
|
|
@@ -150,8 +150,7 @@ public class InspectionsService {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "报告ID不能为空!");
|
|
|
}
|
|
|
String send = "<message><ORDR_ID>" + param.getOrderId() + "</ORDR_ID></message>";
|
|
|
- String xml = invokeService.invokeRemoteMethod("GetLabReport", new Object[]{send});
|
|
|
- xml = xml.substring(1, xml.length() - 1);
|
|
|
+ String xml = invokeService.invokeRemoteMethod("GetLabReport", send);
|
|
|
Element retEle = null;
|
|
|
try {
|
|
|
Document document = DocumentHelper.parseText(xml);
|