|
@ -1,5 +1,6 @@
|
|
|
package com.yihu.wlyy.service.service.prescription;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONException;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
@ -905,10 +906,22 @@ public class PrescriptionService extends ZysoftBaseService{
|
|
|
|
|
|
String response = postSecond("executeSickSettle","院内结算确认接口",null,json,header,false,2);
|
|
|
|
|
|
|
|
|
//添加日志到wlyy_zy_push_log表
|
|
|
addZyPushLog(response,"executeSickSettle","院内结算确认接口",null ,"POST","","3","");
|
|
|
|
|
|
if(StringUtils.isNotBlank(response)){
|
|
|
JSONObject reobj = JSON.parseObject(response);
|
|
|
Integer code = reobj.getInteger("CODE");
|
|
|
String errmsg = reobj.getString("MESSAGE");
|
|
|
if(1 != code){
|
|
|
throw new Exception("基卫接口(院内结算确认接口)请求失败,"+errmsg);
|
|
|
}else{
|
|
|
prescriptionDao.updatejwPayStatus(prescriptionCode);
|
|
|
}
|
|
|
}else{
|
|
|
throw new Exception("基卫接口(院内结算确认接口)请求失败,无数据返回!");
|
|
|
}
|
|
|
|
|
|
return response;
|
|
|
}
|
|
|
|