|
@@ -217,7 +217,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
|
|
|
|
|
|
|
|
log.info("===永诚--车型查询接口请求开始--" + carInfo.getLicenseNo() + "===");
|
|
log.info("===永诚--车型查询接口请求开始--" + carInfo.getLicenseNo() + "===");
|
|
|
// InsApiLog apiLog = httpPost(xmlMapper, m, YcBuildData.API_MODEL);
|
|
// InsApiLog apiLog = httpPost(xmlMapper, m, YcBuildData.API_MODEL);
|
|
|
- String responseData = httpPostResultLog(gainXmlMapper(), m, YcBuildData.API_MODEL, "永诚API方式 - 车型查询(vin:"+carInfo.getVinNo()+") - ");
|
|
|
|
|
|
|
+ String responseData = httpPostResultLog(m, YcBuildData.API_MODEL, "永诚API方式 - 车型查询(vin:"+carInfo.getVinNo()+") - ");
|
|
|
AssertionUtils.isEmpty(responseData,"永诚 车型查询接口响应返回空!");
|
|
AssertionUtils.isEmpty(responseData,"永诚 车型查询接口响应返回空!");
|
|
|
// String responseData = apiLog.getResponseData();
|
|
// String responseData = apiLog.getResponseData();
|
|
|
log.info("===永诚--车型查询接口请求结束--" + carInfo.getLicenseNo() + "===");
|
|
log.info("===永诚--车型查询接口请求结束--" + carInfo.getLicenseNo() + "===");
|
|
@@ -610,7 +610,8 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
|
|
|
// findRegion()
|
|
// findRegion()
|
|
|
|
|
|
|
|
//接口请求
|
|
//接口请求
|
|
|
- String responseData = httpPostResultLog(gainXmlMapper(), m, YcBuildData.API_AUDIT, "永诚API方式 - 核保(车牌号:"+order.getLicenseno()+") - ");
|
|
|
|
|
|
|
+ String responseData = httpPostResultLog(m, YcBuildData.API_AUDIT, "永诚API方式 - 核保(车牌号:"+order.getLicenseno()+") - ");
|
|
|
|
|
+ AssertionUtils.isEmpty(responseData,"(日志号"+logNo+")核保请求超时请重试。");
|
|
|
|
|
|
|
|
String cleanStr = YcBuildData.cleanResponseStr(responseData);
|
|
String cleanStr = YcBuildData.cleanResponseStr(responseData);
|
|
|
AuditResponse rd = gainXmlMapper().readValue(cleanStr, AuditResponse.class);
|
|
AuditResponse rd = gainXmlMapper().readValue(cleanStr, AuditResponse.class);
|
|
@@ -697,7 +698,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
|
|
|
ObjectMapper xmlMapper = gainXmlMapper();
|
|
ObjectMapper xmlMapper = gainXmlMapper();
|
|
|
//接口请求
|
|
//接口请求
|
|
|
// apiLog = httpPost(xmlMapper, iUp, YcBuildData.API_UPLOAD);
|
|
// apiLog = httpPost(xmlMapper, iUp, YcBuildData.API_UPLOAD);
|
|
|
- String responseData = httpPostResultLog(xmlMapper, iUp, YcBuildData.API_UPLOAD, "永诚API方式 - 影像上传 - ");
|
|
|
|
|
|
|
+ String responseData = httpPostResultLog(iUp, YcBuildData.API_UPLOAD, "永诚API方式 - 影像上传 - ");
|
|
|
verifyRequest(apiLog, iac, InsQuoteFlow.Q_S_2);
|
|
verifyRequest(apiLog, iac, InsQuoteFlow.Q_S_2);
|
|
|
try {
|
|
try {
|
|
|
// String responseData = apiLog.getResponseData();
|
|
// String responseData = apiLog.getResponseData();
|
|
@@ -732,7 +733,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
|
|
|
ObjectMapper xmlMapper = gainXmlMapper();
|
|
ObjectMapper xmlMapper = gainXmlMapper();
|
|
|
//接口请求
|
|
//接口请求
|
|
|
log.debug("=========永诚API方式 - xml请求 - 获取缴费链接开始======");
|
|
log.debug("=========永诚API方式 - xml请求 - 获取缴费链接开始======");
|
|
|
- String responseData = httpPostResultLog(xmlMapper, pay, YcBuildData.API_PAY, "永诚API方式 - 获取缴费链接 - ");
|
|
|
|
|
|
|
+ String responseData = httpPostResultLog( pay, YcBuildData.API_PAY, "永诚API方式 - 获取缴费链接 - ");
|
|
|
// InsApiLog apiLog = httpPost(xmlMapper, pay, YcBuildData.API_PAY);
|
|
// InsApiLog apiLog = httpPost(xmlMapper, pay, YcBuildData.API_PAY);
|
|
|
log.debug("=========永诚API方式 - xml请求 - 获取缴费链接结束!======");
|
|
log.debug("=========永诚API方式 - xml请求 - 获取缴费链接结束!======");
|
|
|
// verifyRequest(apiLog, iac, InsQuoteFlow.Q_S_3);
|
|
// verifyRequest(apiLog, iac, InsQuoteFlow.Q_S_3);
|
|
@@ -784,7 +785,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
|
|
|
ObjectMapper xmlMapper = gainXmlMapper();
|
|
ObjectMapper xmlMapper = gainXmlMapper();
|
|
|
//接口请求
|
|
//接口请求
|
|
|
// InsApiLog apiLog = httpPostResultLog(xmlMapper, o, YcBuildData.API_ORDER_QUERY);
|
|
// InsApiLog apiLog = httpPostResultLog(xmlMapper, o, YcBuildData.API_ORDER_QUERY);
|
|
|
- String respData = httpPostResultLog(xmlMapper, o, YcBuildData.API_ORDER_QUERY, "永诚API方式 - 补传回调 - ");
|
|
|
|
|
|
|
+ String respData = httpPostResultLog( o, YcBuildData.API_ORDER_QUERY, "永诚API方式 - 补传回调 - ");
|
|
|
|
|
|
|
|
|
|
|
|
|
String cleanStr = YcBuildData.cleanResponseStr(respData);
|
|
String cleanStr = YcBuildData.cleanResponseStr(respData);
|
|
@@ -936,7 +937,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
|
|
|
|
|
|
|
|
|
|
|
|
|
//接口请求
|
|
//接口请求
|
|
|
- String responseData = httpPostResultLog(xmlMapper, p, YcBuildData.API_GUARANTEE_SLIP, "车牌号:" + order.getLicenseno() + ",永诚API方式 - 获取保单 - ");
|
|
|
|
|
|
|
+ String responseData = httpPostResultLog( p, YcBuildData.API_GUARANTEE_SLIP, "车牌号:" + order.getLicenseno() + ",永诚API方式 - 获取保单 - ");
|
|
|
|
|
|
|
|
String cleanStr = YcBuildData.cleanResponseStr(responseData);
|
|
String cleanStr = YcBuildData.cleanResponseStr(responseData);
|
|
|
PolicyResponse pResp = xmlMapper.readValue(cleanStr, PolicyResponse.class);
|
|
PolicyResponse pResp = xmlMapper.readValue(cleanStr, PolicyResponse.class);
|
|
@@ -1002,7 +1003,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
|
|
|
ObjectMapper xmlMapper = gainXmlMapper();
|
|
ObjectMapper xmlMapper = gainXmlMapper();
|
|
|
//接口请求
|
|
//接口请求
|
|
|
log.debug("=========永诚API方式 - xml请求 - 获取意健险方案及险种查询开始======");
|
|
log.debug("=========永诚API方式 - xml请求 - 获取意健险方案及险种查询开始======");
|
|
|
- String responseData = httpPostResultLog(xmlMapper, accident, YcBuildData.API_ACCIDENT, "永诚API方式 - 获取意健险方案及险种 - ");
|
|
|
|
|
|
|
+ String responseData = httpPostResultLog( accident, YcBuildData.API_ACCIDENT, "永诚API方式 - 获取意健险方案及险种 - ");
|
|
|
// InsApiLog apiLog = httpPost(xmlMapper, accident, YcBuildData.API_ACCIDENT);
|
|
// InsApiLog apiLog = httpPost(xmlMapper, accident, YcBuildData.API_ACCIDENT);
|
|
|
log.debug("=========永诚API方式 - xml请求 - 获取意健险方案及险种查询结束!======");
|
|
log.debug("=========永诚API方式 - xml请求 - 获取意健险方案及险种查询结束!======");
|
|
|
// verifyRequest(apiLog, iac,InsQuoteFlow.);
|
|
// verifyRequest(apiLog, iac,InsQuoteFlow.);
|
|
@@ -1153,7 +1154,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
|
|
|
ObjectMapper xmlMapper = gainXmlMapper();
|
|
ObjectMapper xmlMapper = gainXmlMapper();
|
|
|
//接口请求
|
|
//接口请求
|
|
|
log.debug("=========永诚API方式 - xml请求 - 获取意健险方案及险种查询开始======");
|
|
log.debug("=========永诚API方式 - xml请求 - 获取意健险方案及险种查询开始======");
|
|
|
- String responseData = httpPostResultLog(xmlMapper, accident, YcBuildData.API_ACCIDENT, "永诚API方式 - 获取意健险方案及险种 - ");
|
|
|
|
|
|
|
+ String responseData = httpPostResultLog( accident, YcBuildData.API_ACCIDENT, "永诚API方式 - 获取意健险方案及险种 - ");
|
|
|
// InsApiLog apiLog = httpPost(xmlMapper, accident, YcBuildData.API_ACCIDENT);
|
|
// InsApiLog apiLog = httpPost(xmlMapper, accident, YcBuildData.API_ACCIDENT);
|
|
|
log.debug("=========永诚API方式 - xml请求 - 获取意健险方案及险种查询结束!======");
|
|
log.debug("=========永诚API方式 - xml请求 - 获取意健险方案及险种查询结束!======");
|
|
|
// verifyRequest(apiLog, iac,InsQuoteFlow.);
|
|
// verifyRequest(apiLog, iac,InsQuoteFlow.);
|
|
@@ -1327,7 +1328,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
|
|
|
* @author: lig
|
|
* @author: lig
|
|
|
* @date: 2023年09月02日 0002
|
|
* @date: 2023年09月02日 0002
|
|
|
*/
|
|
*/
|
|
|
- private <T> String httpPostResultLog(ObjectMapper mapper, T requestData, String apiName, String textHead) {
|
|
|
|
|
|
|
+ private <T> String httpPostResultLog(T requestData, String apiName, String textHead) {
|
|
|
|
|
|
|
|
String xmlString = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:tns=\"http://newWS.front.app.echannel.ebiz.alltrust.com/\">";
|
|
String xmlString = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:tns=\"http://newWS.front.app.echannel.ebiz.alltrust.com/\">";
|
|
|
xmlString += "<soapenv:Body>";
|
|
xmlString += "<soapenv:Body>";
|
|
@@ -2181,9 +2182,9 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
|
|
|
* @date: 2023年05月18日 0018
|
|
* @date: 2023年05月18日 0018
|
|
|
*/
|
|
*/
|
|
|
private <T> T requestApi(Object m, T response, InsAreaCompany iac, String reqUrl, InsQuoteFlow iqf, String textHead) {
|
|
private <T> T requestApi(Object m, T response, InsAreaCompany iac, String reqUrl, InsQuoteFlow iqf, String textHead) {
|
|
|
- String responseData = httpPostResultLog(gainXmlMapper(), m, reqUrl, textHead);
|
|
|
|
|
|
|
+ String responseData = httpPostResultLog(m, reqUrl, textHead);
|
|
|
if (responseData.contains("报价返回信息异常")) {
|
|
if (responseData.contains("报价返回信息异常")) {
|
|
|
- throw new SystemException("永诚报价请求负荷,请稍后重试。");
|
|
|
|
|
|
|
+ throw new SystemException("永诚报价请求负荷,永诚建议请稍后重试。");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
String cleanStr = YcBuildData.cleanResponseStr(responseData);
|
|
String cleanStr = YcBuildData.cleanResponseStr(responseData);
|