|
@@ -1,5 +1,6 @@
|
|
|
package com.ydtech.modules.order.service.impl;
|
|
package com.ydtech.modules.order.service.impl;
|
|
|
|
|
|
|
|
|
|
+import cn.hutool.core.collection.CollUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
@@ -156,7 +157,7 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
// 是否需要验车
|
|
// 是否需要验车
|
|
|
crawlerQuoteRequest.setIsInspect(t.getIsInspect());
|
|
crawlerQuoteRequest.setIsInspect(t.getIsInspect());
|
|
|
// 永安商业折扣
|
|
// 永安商业折扣
|
|
|
- crawlerQuoteRequest.setYaBusinessDiscount(t.getDiscount());
|
|
|
|
|
|
|
+ crawlerQuoteRequest.setYaBusinessDiscount(t.getYaBusinessDiscount());
|
|
|
// 上次订单
|
|
// 上次订单
|
|
|
if (StringUtils.isNotEmpty(t.getLastCompanyId())) {
|
|
if (StringUtils.isNotEmpty(t.getLastCompanyId())) {
|
|
|
InsAreaCompany insAreaCompany = insAreaCompanyService.getById(t.getLastCompanyId());
|
|
InsAreaCompany insAreaCompany = insAreaCompanyService.getById(t.getLastCompanyId());
|
|
@@ -1150,6 +1151,10 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
|
|
|
ctCrawlerLoginRequest.setOther(new LinkedHashMap<>());
|
|
ctCrawlerLoginRequest.setOther(new LinkedHashMap<>());
|
|
|
ctCrawlerLoginRequest.getOther().put("phone",agreement.getAttribution().getPhone());
|
|
ctCrawlerLoginRequest.getOther().put("phone",agreement.getAttribution().getPhone());
|
|
|
ctCrawlerLoginRequest.getOther().put("mescoed",agreement.getAgreement().getSmsCode());
|
|
ctCrawlerLoginRequest.getOther().put("mescoed",agreement.getAgreement().getSmsCode());
|
|
|
|
|
+ PtlAgreementAttributionDto attribution = agreement.getAttribution();
|
|
|
|
|
+ if(CollUtil.isNotEmpty(attribution.getFields())){
|
|
|
|
|
+ ctCrawlerLoginRequest.getOther().putAll(attribution.getFields().stream().collect(LinkedHashMap::new, (m, v) -> m.put(v.getField(), v.getValue()), LinkedHashMap::putAll));
|
|
|
|
|
+ }
|
|
|
ctCrawlerLoginRequest.setCheck("zs");
|
|
ctCrawlerLoginRequest.setCheck("zs");
|
|
|
// 组装 Other 信息
|
|
// 组装 Other 信息
|
|
|
Map<String,String> otherMap = new HashMap<>();
|
|
Map<String,String> otherMap = new HashMap<>();
|