|
@ -158,4 +158,26 @@ public class ConvertUtil {
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* BS10112处方开方接口返回对象数组数据解析
|
|
|
* @param obj
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public static JSONObject convertListEnvelopInRequestBS10112(String obj)throws Exception{
|
|
|
JSONObject jsonObject=JSONObject.fromObject(obj);
|
|
|
if(null!=jsonObject&&"1".equals(jsonObject.get("code").toString())){
|
|
|
JSONArray jsonObjectMgsInfo=(JSONArray)jsonObject.get("MsgInfo");
|
|
|
if(null!=jsonObjectMgsInfo){
|
|
|
for (Object object : jsonObjectMgsInfo) {
|
|
|
JSONObject jsonObjectBody = (JSONObject) object;
|
|
|
Object objectBody=jsonObjectBody.get("resquest");
|
|
|
jsonObjectBody = (JSONObject) objectBody;
|
|
|
return jsonObjectBody;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
}
|