|
|
@@ -362,9 +362,10 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
|
|
|
//
|
|
|
// }
|
|
|
|
|
|
+ RuoteResponse rr = null;
|
|
|
boolean boo = false;
|
|
|
while (!boo) {
|
|
|
- RuoteResponse rr = requestApi(m, new RuoteResponse(), iac, YcBuildData.API_QUOTE, InsQuoteFlow.Q_S_0);
|
|
|
+ rr = requestApi(m, new RuoteResponse(), iac, YcBuildData.API_QUOTE, InsQuoteFlow.Q_S_0);
|
|
|
//处理返回信息
|
|
|
//1、起保日期处理
|
|
|
|
|
|
@@ -375,11 +376,13 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
|
|
|
if (null == rr) return HttpResult.error("远程请求报价失败");
|
|
|
if (!rr.getHead().getErrorCode().equals("000000")) return HttpResult.error(rr.getHead().getErrorMessage());
|
|
|
}
|
|
|
- RuoteResponse rr = requestApi(m, new RuoteResponse(), iac, YcBuildData.API_QUOTE, InsQuoteFlow.Q_S_0);
|
|
|
- if (null == rr) return HttpResult.error("远程请求报价失败");
|
|
|
- if (!rr.getHead().getErrorCode().equals("000000")) return HttpResult.error(rr.getHead().getErrorMessage());
|
|
|
- RuoteResponse rr2 = quoteExternalApi(rr, quoteVo, iac, m);
|
|
|
- if (!rr2.getHead().getErrorCode().equals("000000")) return HttpResult.error(rr2.getHead().getErrorMessage());
|
|
|
+// RuoteResponse rr = requestApi(m, new RuoteResponse(), iac, YcBuildData.API_QUOTE, InsQuoteFlow.Q_S_0);
|
|
|
+// if (null == rr) return HttpResult.error("远程请求报价失败");
|
|
|
+// if (!rr.getHead().getErrorCode().equals("000000")) return HttpResult.error(rr.getHead().getErrorMessage());
|
|
|
+// RuoteResponse rr2 = quoteExternalApi(rr, quoteVo, iac, m);
|
|
|
+// if (!rr2.getHead().getErrorCode().equals("000000")) return HttpResult.error(rr2.getHead().getErrorMessage());
|
|
|
+
|
|
|
+
|
|
|
// if (!rr2.getHead().getErrorCode().equals("009999")) {
|
|
|
// int index1 = rr2.getHead().getErrorMessage().indexOf("起保日期");
|
|
|
// int index2 = rr2.getHead().getErrorMessage().indexOf("终保日期");
|
|
|
@@ -390,9 +393,9 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
|
|
|
//
|
|
|
// }
|
|
|
|
|
|
- QuoteRespVo quoteRespVo = YcBuildData.buildQuoteRespVo(order, rr2, yaQuoteInfoVo);
|
|
|
+ QuoteRespVo quoteRespVo = YcBuildData.buildQuoteRespVo(order, rr, yaQuoteInfoVo);
|
|
|
//8 生成订单
|
|
|
- iac = response_order(order, quoteRespVo, m, rr2, quoteVo);
|
|
|
+ iac = response_order(order, quoteRespVo, m, rr, quoteVo);
|
|
|
// updateApiLog(apiLog, iac);
|
|
|
quoteRespVo.setCompanyId(iac.getId());
|
|
|
|