|
@ -217,8 +217,9 @@ public class PrescriptionService extends BaseService {
|
|
|
JSONObject jwobj = JSON.parseObject(result);
|
|
|
JSONObject zyCfinfo = jwobj.getJSONObject("data");
|
|
|
Integer code = zyCfinfo.getInteger("CODE");
|
|
|
Integer status = jwobj.getInteger("status");
|
|
|
|
|
|
if( 1 == code){
|
|
|
if(200 == status && 1 == code){
|
|
|
|
|
|
JSONArray zyCfinfoListReturnData = zyCfinfo.getJSONArray("returnData");
|
|
|
JSONArray zyCfinfoList = zyCfinfoListReturnData.getJSONArray(0);
|
|
@ -311,7 +312,7 @@ public class PrescriptionService extends BaseService {
|
|
|
}
|
|
|
json.put("mxlist",cfInfo);
|
|
|
}else{
|
|
|
String errormessage = zyCfinfo.getString("MESSAGE");
|
|
|
String errormessage = jwobj.getString("MESSAGE");
|
|
|
throw new Exception(errormessage);
|
|
|
}
|
|
|
}
|
|
@ -337,8 +338,9 @@ public class PrescriptionService extends BaseService {
|
|
|
JSONObject jwobj = JSON.parseObject(result);
|
|
|
JSONObject zyCfinfo = jwobj.getJSONObject("data");
|
|
|
Integer code = zyCfinfo.getInteger("CODE");
|
|
|
Integer status = jwobj.getInteger("status");
|
|
|
|
|
|
if( 1 == code){
|
|
|
if(200 == status && 1 == code){
|
|
|
|
|
|
JSONArray zyCfinfoListReturnData = zyCfinfo.getJSONArray("returnData");
|
|
|
JSONArray zyCfinfoList = zyCfinfoListReturnData.getJSONArray(0);
|
|
@ -359,7 +361,7 @@ public class PrescriptionService extends BaseService {
|
|
|
}
|
|
|
}
|
|
|
}else{
|
|
|
String errormessage = zyCfinfo.getString("MESSAGE");
|
|
|
String errormessage = jwobj.getString("MESSAGE");
|
|
|
throw new Exception(errormessage);
|
|
|
}
|
|
|
}else {
|