|
@ -217,19 +217,19 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
// 请求失败
|
|
|
//保存http日志
|
|
|
error = title;
|
|
|
logService.saveHttpLog(isSuccess,url,content,method,null,msgBody,res,error,"2");
|
|
|
logService.saveHttpLog(isSuccess,url,content,method,null,msgBody,res,error,logService.archiveType);
|
|
|
throw new Exception(error);
|
|
|
} else if (StringUtils.startsWith(xml, "System-Error")) {
|
|
|
// 调用失败
|
|
|
//保存http日志
|
|
|
error = xml.substring(xml.indexOf(":") + 1, xml.length());
|
|
|
logService.saveHttpLog(isSuccess,url,content,method,null,msgBody,res,error,"2");
|
|
|
logService.saveHttpLog(isSuccess,url,content,method,null,msgBody,res,error,logService.archiveType);
|
|
|
throw new Exception(error);
|
|
|
} else if (StringUtils.startsWith(xml, "Error")) {
|
|
|
// 调用失败
|
|
|
//保存http日志
|
|
|
error = xml.substring(xml.indexOf(":") + 1, xml.length());
|
|
|
logService.saveHttpLog(isSuccess,url,content,method,null,msgBody,res,error,"2");
|
|
|
logService.saveHttpLog(isSuccess,url,content,method,null,msgBody,res,error,logService.archiveType);
|
|
|
throw new Exception(error);
|
|
|
}
|
|
|
}
|
|
@ -298,7 +298,7 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
}
|
|
|
|
|
|
//保存http日志
|
|
|
logService.saveHttpLog(true,ORG_LIST,content,method,null,msgBody,res,null,"2");
|
|
|
logService.saveHttpLog(true,ORG_LIST,content,method,null,msgBody,res,null,logService.archiveType);
|
|
|
}
|
|
|
return re;
|
|
|
}
|
|
@ -343,7 +343,7 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
}
|
|
|
|
|
|
//保存http日志
|
|
|
logService.saveHttpLog(true,DEP_LIST,content,method,null,msgBody,res,null,"2");
|
|
|
logService.saveHttpLog(true,DEP_LIST,content,method,null,msgBody,res,null,logService.archiveType);
|
|
|
|
|
|
return re;
|
|
|
}
|
|
@ -436,7 +436,7 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
}
|
|
|
|
|
|
//保存http日志
|
|
|
logService.saveHttpLog(true,DOCTOR_LIST,content,method,null,msgBody,res,null,"2");
|
|
|
logService.saveHttpLog(true,DOCTOR_LIST,content,method,null,msgBody,res,null,logService.archiveType);
|
|
|
|
|
|
return re;
|
|
|
}
|
|
@ -486,7 +486,7 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
verificationXml(xml,"获取医生排班表失败!",DOCTOR_ARRANGE,content,method,msgBody,res);
|
|
|
|
|
|
//保存http日志
|
|
|
logService.saveHttpLog(true,DOCTOR_ARRANGE,content,method,null,msgBody,res,null,"2");
|
|
|
logService.saveHttpLog(true,DOCTOR_ARRANGE,content,method,null,msgBody,res,null,logService.archiveType);
|
|
|
|
|
|
return xmlToList(xml);
|
|
|
}
|
|
@ -562,7 +562,7 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
}
|
|
|
|
|
|
//保存http日志
|
|
|
logService.saveHttpLog(true,DOCTOR_ARRANGE_SIMPLE,content,method,null,msgBody,res,null,"2");
|
|
|
logService.saveHttpLog(true,DOCTOR_ARRANGE_SIMPLE,content,method,null,msgBody,res,null,logService.archiveType);
|
|
|
|
|
|
return re;
|
|
|
}
|
|
@ -630,7 +630,7 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
//xml验证
|
|
|
verificationXml(response,"获取医生排班表失败!",ORDER_CREATE,content,method,msgBody,res);
|
|
|
//保存http日志
|
|
|
logService.saveHttpLog(true,ORDER_CREATE,content,method,null,msgBody,res,null,"2");
|
|
|
logService.saveHttpLog(true,ORDER_CREATE,content,method,null,msgBody,res,null,logService.archiveType);
|
|
|
re = CreateOrderAfter(response, hospitalId, hospitalName, hosDeptId, hosDeptName, doctorId, doctorName, sectionType, startTime, endTime, patient, patientName, cardNo, clinicCard, patientPhone, null, null);
|
|
|
} else {
|
|
|
throw new Exception("该排班信息错误或者不存在!");
|
|
@ -685,7 +685,7 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
}
|
|
|
|
|
|
//保存http日志
|
|
|
logService.saveHttpLog(isOk,ORDER_CANCEL,content,method,null,msgBody,res,null,"2");
|
|
|
logService.saveHttpLog(isOk,ORDER_CANCEL,content,method,null,msgBody,res,null,logService.archiveType);
|
|
|
|
|
|
return isOk;
|
|
|
}
|
|
@ -778,7 +778,7 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
}
|
|
|
|
|
|
//保存http日志
|
|
|
logService.saveHttpLog(true,DOCTOR_LIST,content,method,null,msgBody,res,null,"2");
|
|
|
logService.saveHttpLog(true,DOCTOR_LIST,content,method,null,msgBody,res,null,logService.archiveType);
|
|
|
|
|
|
return doctor;
|
|
|
}
|
|
@ -856,10 +856,10 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
}
|
|
|
|
|
|
//保存http日志
|
|
|
logService.saveHttpLog(true,ORDER_INFO,content,method,null,msgBody,res,null,"2");
|
|
|
logService.saveHttpLog(true,ORDER_INFO,content,method,null,msgBody,res,null,logService.archiveType);
|
|
|
} else {
|
|
|
//保存http日志
|
|
|
logService.saveHttpLog(false,ORDER_INFO,content,method,null,msgBody,res,errMsg,"2");
|
|
|
logService.saveHttpLog(false,ORDER_INFO,content,method,null,msgBody,res,errMsg,logService.archiveType);
|
|
|
throw new Exception(errMsg);
|
|
|
}
|
|
|
} catch (Exception ex) {
|
|
@ -999,7 +999,7 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
}
|
|
|
|
|
|
//保存http日志
|
|
|
logService.saveHttpLog(true,REG_LIST,content,method,null,msgBody,res,null,"2");
|
|
|
logService.saveHttpLog(true,REG_LIST,content,method,null,msgBody,res,null,logService.archiveType);
|
|
|
|
|
|
return patientRegList;
|
|
|
}
|
|
@ -1115,12 +1115,12 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
patientReservation.setDoctorJob(guahaoDoctor.getTitle());//职称
|
|
|
|
|
|
//保存http日志
|
|
|
logService.saveHttpLog(true,ORDER_INFO,content,method,null,msgBody,res,null,"2");
|
|
|
logService.saveHttpLog(true,ORDER_INFO,content,method,null,msgBody,res,null,logService.archiveType);
|
|
|
|
|
|
return patientReservation;
|
|
|
} else {
|
|
|
//保存http日志
|
|
|
logService.saveHttpLog(false,ORDER_INFO,content,method,null,msgBody,res,null,"2");
|
|
|
logService.saveHttpLog(false,ORDER_INFO,content,method,null,msgBody,res,null,logService.archiveType);
|
|
|
return null;
|
|
|
}
|
|
|
}
|