|
@ -1,5 +1,7 @@
|
|
|
package com.yihu.wlyy.service.service;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.alibaba.fastjson.serializer.SerializerFeature;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.yihu.wlyy.service.common.SystemConfig;
|
|
|
import com.yihu.wlyy.service.common.http.HttpApiException;
|
|
@ -10,7 +12,6 @@ import com.yihu.wlyy.service.dao.ZyPushLogDao;
|
|
|
import com.yihu.wlyy.service.entity.HospitalMapping;
|
|
|
import com.yihu.wlyy.service.entity.ZyPushLog;
|
|
|
import com.zoe.phip.ssp.sdk.ApiException;
|
|
|
import net.sf.json.JSONObject;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
@ -75,7 +76,7 @@ public class ZysoftBaseService {
|
|
|
log.setError(error);
|
|
|
log.setMethod(method);
|
|
|
log.setRequest(request);
|
|
|
log.setResponse(JSONObject.fromObject(re).toString());
|
|
|
log.setResponse(JSONObject.toJSONString(re,SerializerFeature.WriteMapNullValue));
|
|
|
log.setRetryTimes(0);
|
|
|
log.setStatus(status);
|
|
|
log.setType(type);
|
|
@ -116,8 +117,8 @@ public class ZysoftBaseService {
|
|
|
|
|
|
Map<String,String> paramsList = new HashMap<>();
|
|
|
|
|
|
String msgBody = JSONObject.fromObject(params).toString();
|
|
|
String msgHeader = JSONObject.fromObject(headers).toString();
|
|
|
String msgBody = JSONObject.toJSONString(params, SerializerFeature.WriteMapNullValue);
|
|
|
String msgHeader = JSONObject.toJSONString(headers, SerializerFeature.WriteMapNullValue);
|
|
|
paramsList.put("msgHeader",msgHeader);
|
|
|
paramsList.put("msgBody",msgBody);
|
|
|
|
|
@ -190,8 +191,8 @@ public class ZysoftBaseService {
|
|
|
headers.put("INTERFACE",api);
|
|
|
|
|
|
Map<String,String> paramsList = new HashMap<>();
|
|
|
String msgBody = params==null?jsonParams.toString():JSONObject.fromObject(params).toString();
|
|
|
String msgHeader = JSONObject.fromObject(headers).toString();
|
|
|
String msgBody = params==null?JSONObject.toJSONString(jsonParams, SerializerFeature.WriteMapNullValue):JSONObject.toJSONString(params, SerializerFeature.WriteMapNullValue);
|
|
|
String msgHeader = JSONObject.toJSONString(headers, SerializerFeature.WriteMapNullValue);
|
|
|
paramsList.put("msgHeader",msgHeader);
|
|
|
paramsList.put("msgBody",msgBody);
|
|
|
|