|
|
@@ -210,6 +210,16 @@ public class ZiJinCrawlerRequestImpl implements ZiJinCrawlerRequest {
|
|
|
log.info("ziJinCrawlerRecognizeCodesResponse参数的值:{}", JSON.toJSONString(ziJinCrawlerRecognizeCodesResponse));
|
|
|
// 再次调用报价接口
|
|
|
if (ResponseCode.R_0000.getCode().equals(ziJinCrawlerRecognizeCodesResponse.getRtnCode())) {
|
|
|
+ List<ZiJinCrawlerRecognizeCodesResponse.Results> results = ziJinCrawlerRecognizeCodesResponse.getResults();
|
|
|
+ for (ZiJinCrawlerRecognizeCodesResponse.Results result : results) {
|
|
|
+ if ("question".equals(result.getSerialNo())) {
|
|
|
+ ziJinCrawlerQuotationRequest.getBaseInfo().setAnswer(result.getResult());
|
|
|
+ }
|
|
|
+ if ("questionCI".equals(result.getSerialNo())) {
|
|
|
+ ziJinCrawlerQuotationRequest.getBaseInfo().setAnswerCI(result.getResult());
|
|
|
+ }
|
|
|
+ ziJinCrawlerQuotationRequest.getBaseInfo().setRenewalFlagCI("1");
|
|
|
+ }
|
|
|
ziJinCrawlerQuotationResponse = ziJinCrawlerRequestComponent.quotation(ziJinCrawlerQuotationRequest, headers);
|
|
|
}
|
|
|
}
|
|
|
@@ -781,8 +791,8 @@ public class ZiJinCrawlerRequestImpl implements ZiJinCrawlerRequest {
|
|
|
baseInfo.setEndMinute("00");
|
|
|
baseInfo.setEndMinuteCI("00");
|
|
|
// 经测试:燃油单强设为0,交三不设置(待确认),会返回转保标志,紫金系统可以忽略进行下一步报价
|
|
|
- // baseInfo.setXbFlag("0");
|
|
|
- // baseInfo.setXbFlagCI("0");
|
|
|
+ baseInfo.setXbFlag(quoteVo.getBiRiskInfoVo() == null ? "0" : null);
|
|
|
+ baseInfo.setXbFlagCI(quoteVo.getBiRiskInfoVo() == null ? "0" : null);
|
|
|
baseInfo.setGoalInsuredFlag("0");
|
|
|
baseInfo.setConfigName("天勤");
|
|
|
baseInfo.setId("1dec8ac2ced74973842a5b098669813a");
|
|
|
@@ -792,11 +802,11 @@ public class ZiJinCrawlerRequestImpl implements ZiJinCrawlerRequest {
|
|
|
baseInfo.setHanderCode("214003263");
|
|
|
baseInfo.setHanderName("程涛");
|
|
|
baseInfo.setDemandNo("01ZKIC140026051910017933666448");
|
|
|
- // baseInfo.setDemandNoCI("01ZKIC140026051910017933666448");
|
|
|
+ baseInfo.setDemandNoCI("01ZKIC140026051910017933666448");// 这个先放开看行不
|
|
|
// 经测试:燃油: 单交设为2,交三设为0
|
|
|
baseInfo.setCalculateFlag(quoteVo.getBiRiskInfoVo() == null ? "2" : "0");
|
|
|
// 经测试:燃油:单交设为"",交三设为1
|
|
|
- baseInfo.setRenewalFlag(quoteVo.getBiRiskInfoVo() == null ? "1" : "");
|
|
|
+ baseInfo.setRenewalFlag(quoteVo.getBiRiskInfoVo() == null ? "" : "1");
|
|
|
return baseInfo;
|
|
|
}
|
|
|
|