|
|
@@ -5,6 +5,7 @@ import com.jzg.commons.entity.quote.vo.*;
|
|
|
|
|
|
import com.jzg.quotation.commons.filter.CarModelsFilterUtils;
|
|
|
import com.jzg.quotation.taikang.crawler.CodeUtil;
|
|
|
+import com.jzg.quotation.taikang.crawler.ConvertUtil;
|
|
|
import com.jzg.quotation.taikang.crawler.model.TKLoginSession;
|
|
|
import com.jzg.quotation.taikang.crawler.model.api.*;
|
|
|
import com.jzg.quotation.taikang.crawler.model.entity.*;
|
|
|
@@ -31,6 +32,7 @@ public class TKSimpleService {
|
|
|
|
|
|
/**
|
|
|
* 车船税减免标志映射表:公司系统标志 -> 保司系统标志
|
|
|
+ * 1-正常交税; 2-免税; 3-减税; 4-完税
|
|
|
*/
|
|
|
private static final Map<String, String> TAX_RELIEF_FLAG_MAP = Map.of(
|
|
|
"1", "T",
|
|
|
@@ -952,9 +954,9 @@ public class TKSimpleService {
|
|
|
TKFlag::new
|
|
|
);
|
|
|
flag.setVipWeekFlag("0");
|
|
|
- flag.setQuoteLinkageFlag("0");
|
|
|
- flag.setInstantInsureBZAllowed("0");
|
|
|
- flag.setPriceDifferFlag("0");
|
|
|
+ // flag.setQuoteLinkageFlag("0"); //解决选择三者险300万进行报价时,依然提示:规则管控提示$商业三者险保额请选择300万以上问题,测试正常,不行完了放开
|
|
|
+ // flag.setInstantInsureBZAllowed("0");//解决选择三者险300万进行报价时,依然提示:规则管控提示$商业三者险保额请选择300万以上问题,测试正常,不行完了放开
|
|
|
+ // flag.setPriceDifferFlag("0");//解决选择三者险300万进行报价时,依然提示:规则管控提示$商业三者险保额请选择300万以上问题,测试正常,不行完了放开
|
|
|
|
|
|
// 无商业险时设置商业险标志为"0"
|
|
|
if (CollectionUtils.isEmpty(commonQuoteVo.getKindInfoVo())) {
|
|
|
@@ -969,6 +971,9 @@ public class TKSimpleService {
|
|
|
);
|
|
|
other.setFromID(fromId);
|
|
|
other.setChannelCode("OffWeb");
|
|
|
+ other.setMessageBZ("");
|
|
|
+ other.setMessageCI("");
|
|
|
+ other.setPriceDifferFlag("0");
|
|
|
|
|
|
// 获取时间参数对象(保司系统已初始化,无需创建)
|
|
|
TKDateInfo date = preciseInitParam.getDate();
|
|
|
@@ -1037,7 +1042,7 @@ public class TKSimpleService {
|
|
|
TKCiKindsVo tkCiKindVo = tkCiKindsVoMap.get(commonBiKindInfoVo.getKindCode());
|
|
|
tkCiKindVo.setIsSelect("1");
|
|
|
tkCiKindVo.setQuoteAmount(commonBiKindInfoVo.getAmount());
|
|
|
- tkCiKindVo.setQuoteAmountCN(commonBiKindInfoVo.getAmount());
|
|
|
+ tkCiKindVo.setQuoteAmountCN(ConvertUtil.simpleConvert(commonBiKindInfoVo.getAmount()));
|
|
|
|
|
|
if (StringUtils.isNotBlank(commonBiKindInfoVo.getUnitAmount())) {
|
|
|
tkCiKindVo.setUnitAmount(new BigDecimal(commonBiKindInfoVo.getUnitAmount()));
|
|
|
@@ -1133,7 +1138,7 @@ public class TKSimpleService {
|
|
|
// ========== 8. 调用报价接口 ==========
|
|
|
|
|
|
// 设置请求参数
|
|
|
- preciseInitParam.setChannelCode("OffWeb");
|
|
|
+ // preciseInitParam.setChannelCode("OffWeb");// 这个值第二次请求不需要,并且多了版本号orderVersion:"2"
|
|
|
preciseInitParam.setInitFlag("quote");
|
|
|
preciseInitParam.setTplatformId(tplatformId);
|
|
|
preciseInitParam.setTplatLoginKey(tplatLoginKey);
|