|
@ -312,31 +312,33 @@ public class ImmuneService {
|
|
String patientName,
|
|
String patientName,
|
|
String patientID,
|
|
String patientID,
|
|
String patientPhone) throws Exception{
|
|
String patientPhone) throws Exception{
|
|
String url = jwUrl + "/third/guahao/imm/RegisterImmune";
|
|
|
|
List<NameValuePair> params = new ArrayList<>();
|
|
|
|
params.add(new BasicNameValuePair("BarCode", barCode));
|
|
|
|
params.add(new BasicNameValuePair("OrgCode", orgCode));
|
|
|
|
params.add(new BasicNameValuePair("SectionType", sectionType));
|
|
|
|
params.add(new BasicNameValuePair("strStart", strStart));
|
|
|
|
params.add(new BasicNameValuePair("SSID", ssid));
|
|
|
|
params.add(new BasicNameValuePair("PatientName", patientName));
|
|
|
|
params.add(new BasicNameValuePair("PatientID", patientID));
|
|
|
|
params.add(new BasicNameValuePair("PatientPhone", patientPhone));
|
|
|
|
|
|
|
|
String response = httpClientUtil.post(url, params, "UTF-8");
|
|
|
|
|
|
// String url = jwUrl + "/third/guahao/imm/RegisterImmune";
|
|
|
|
// List<NameValuePair> params = new ArrayList<>();
|
|
|
|
// params.add(new BasicNameValuePair("BarCode", barCode));
|
|
|
|
// params.add(new BasicNameValuePair("OrgCode", orgCode));
|
|
|
|
// params.add(new BasicNameValuePair("SectionType", sectionType));
|
|
|
|
// params.add(new BasicNameValuePair("strStart", strStart));
|
|
|
|
// params.add(new BasicNameValuePair("SSID", ssid));
|
|
|
|
// params.add(new BasicNameValuePair("PatientName", patientName));
|
|
|
|
// params.add(new BasicNameValuePair("PatientID", patientID));
|
|
|
|
// params.add(new BasicNameValuePair("PatientPhone", patientPhone));
|
|
|
|
//
|
|
|
|
// String response = httpClientUtil.post(url, params, "UTF-8");
|
|
|
|
//
|
|
|
|
// JSONObject data = JSONObject.parseObject(response);
|
|
|
|
// int status = data.getInteger("status");
|
|
|
|
// String ok = data.getString("data");
|
|
|
|
// if(200 != status || !"OK".equals(ok)){
|
|
|
|
// throw new Exception("免疫接种预约失败!");
|
|
|
|
// }else{
|
|
|
|
// return response;
|
|
|
|
// }
|
|
|
|
|
|
JSONObject data = JSONObject.parseObject(response);
|
|
|
|
int status = data.getInteger("status");
|
|
|
|
String xml = data.getString("data");
|
|
|
|
if(200 != status || StringUtils.isBlank(xml)){
|
|
|
|
throw new Exception("免疫接种预约失败!");
|
|
|
|
}else{
|
|
|
|
return response;
|
|
|
|
}
|
|
|
|
|
|
return "";
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
*免疫接种确认预约
|
|
|
|
|
|
*免疫接种取消预约
|
|
* @param barCode
|
|
* @param barCode
|
|
* @param orgCode
|
|
* @param orgCode
|
|
* @param sectionType
|
|
* @param sectionType
|
|
@ -355,27 +357,28 @@ public class ImmuneService {
|
|
String patientName,
|
|
String patientName,
|
|
String patientID,
|
|
String patientID,
|
|
String patientPhone) throws Exception{
|
|
String patientPhone) throws Exception{
|
|
String url = jwUrl + "/third/guahao/imm/UnResRegisterImmune";
|
|
|
|
List<NameValuePair> params = new ArrayList<>();
|
|
|
|
params.add(new BasicNameValuePair("BarCode", barCode));
|
|
|
|
params.add(new BasicNameValuePair("OrgCode", orgCode));
|
|
|
|
params.add(new BasicNameValuePair("SectionType", sectionType));
|
|
|
|
params.add(new BasicNameValuePair("strStart", strStart));
|
|
|
|
params.add(new BasicNameValuePair("SSID", ssid));
|
|
|
|
params.add(new BasicNameValuePair("PatientName", patientName));
|
|
|
|
params.add(new BasicNameValuePair("PatientID", patientID));
|
|
|
|
params.add(new BasicNameValuePair("PatientPhone", patientPhone));
|
|
|
|
|
|
|
|
String response = httpClientUtil.post(url, params, "UTF-8");
|
|
|
|
|
|
|
|
JSONObject data = JSONObject.parseObject(response);
|
|
|
|
int status = data.getInteger("status");
|
|
|
|
String xml = data.getString("data");
|
|
|
|
if(200 != status || StringUtils.isBlank(xml)){
|
|
|
|
throw new Exception("取消免疫接种失败!");
|
|
|
|
}else{
|
|
|
|
return response;
|
|
|
|
}
|
|
|
|
|
|
// String url = jwUrl + "/third/guahao/imm/UnResRegisterImmune";
|
|
|
|
// List<NameValuePair> params = new ArrayList<>();
|
|
|
|
// params.add(new BasicNameValuePair("BarCode", barCode));
|
|
|
|
// params.add(new BasicNameValuePair("OrgCode", orgCode));
|
|
|
|
// params.add(new BasicNameValuePair("SectionType", sectionType));
|
|
|
|
// params.add(new BasicNameValuePair("strStart", strStart));
|
|
|
|
// params.add(new BasicNameValuePair("SSID", ssid));
|
|
|
|
// params.add(new BasicNameValuePair("PatientName", patientName));
|
|
|
|
// params.add(new BasicNameValuePair("PatientID", patientID));
|
|
|
|
// params.add(new BasicNameValuePair("PatientPhone", patientPhone));
|
|
|
|
//
|
|
|
|
// String response = httpClientUtil.post(url, params, "UTF-8");
|
|
|
|
//
|
|
|
|
// JSONObject data = JSONObject.parseObject(response);
|
|
|
|
// int status = data.getInteger("status");
|
|
|
|
// String ok = data.getString("data");
|
|
|
|
// if(200 != status || !"OK".equals(ok)){
|
|
|
|
// throw new Exception("取消免疫接种失败!");
|
|
|
|
// }else{
|
|
|
|
// return response;
|
|
|
|
// }
|
|
|
|
return "";
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|