|
@@ -10,17 +10,13 @@ import com.ydtech.constants.enums.InsurKind;
|
|
|
import com.ydtech.core.page.HttpResult;
|
|
import com.ydtech.core.page.HttpResult;
|
|
|
import com.ydtech.exception.SystemException;
|
|
import com.ydtech.exception.SystemException;
|
|
|
import com.ydtech.modules.esm.model.EsmInsCompany;
|
|
import com.ydtech.modules.esm.model.EsmInsCompany;
|
|
|
-import com.ydtech.modules.esm.model.InsTaskImage;
|
|
|
|
|
import com.ydtech.modules.esm.service.EsmInsCompanyService;
|
|
import com.ydtech.modules.esm.service.EsmInsCompanyService;
|
|
|
-import com.ydtech.modules.esm.service.InsTaskImageService;
|
|
|
|
|
import com.ydtech.modules.ins.model.ya.*;
|
|
import com.ydtech.modules.ins.model.ya.*;
|
|
|
-import com.ydtech.modules.ins.service.YongAnService;
|
|
|
|
|
import com.ydtech.modules.ins.vo.*;
|
|
import com.ydtech.modules.ins.vo.*;
|
|
|
import com.ydtech.modules.order.convert.MapToYaExtendInfoDto;
|
|
import com.ydtech.modules.order.convert.MapToYaExtendInfoDto;
|
|
|
import com.ydtech.modules.order.entity.InsAreaCompany;
|
|
import com.ydtech.modules.order.entity.InsAreaCompany;
|
|
|
import com.ydtech.modules.order.entity.InsOrders;
|
|
import com.ydtech.modules.order.entity.InsOrders;
|
|
|
import com.ydtech.modules.order.entity.TaxArrears;
|
|
import com.ydtech.modules.order.entity.TaxArrears;
|
|
|
-import com.ydtech.modules.order.entity.po.InsTaskImages;
|
|
|
|
|
import com.ydtech.modules.order.entity.po.InsTaskImagesBase64;
|
|
import com.ydtech.modules.order.entity.po.InsTaskImagesBase64;
|
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteInfoVo;
|
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteVo;
|
|
import com.ydtech.modules.order.entity.vo.BaseQuoteVo;
|
|
@@ -34,7 +30,6 @@ import com.ydtech.utils.HMAC256Uitil;
|
|
|
import com.ydtech.utils.HttpXmlUtil;
|
|
import com.ydtech.utils.HttpXmlUtil;
|
|
|
import com.ydtech.utils.idgen.IdGenerate;
|
|
import com.ydtech.utils.idgen.IdGenerate;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
import org.springframework.util.ObjectUtils;
|
|
@@ -342,8 +337,8 @@ public class YongAnOrderServiceImpl implements YongAnOrderService {
|
|
|
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
|
|
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
|
|
|
try {
|
|
try {
|
|
|
//1.组装RequestBody
|
|
//1.组装RequestBody
|
|
|
- ResponseDataC2 responseDataC2 = JSONObject.parseObject(insAreaCompany.getReptxt().toJSONString(), ResponseDataC2.class);
|
|
|
|
|
- CustomerInfoVo insureinfo = JSONObject.parseObject(orders.getInsureinfo().toJSONString(), CustomerInfoVo.class);
|
|
|
|
|
|
|
+ ResponseDataC2 responseDataC2 = JSON.parseObject(insAreaCompany.getReptxt().toJSONString(), ResponseDataC2.class);
|
|
|
|
|
+ CustomerInfoVo insureinfo = JSON.parseObject(orders.getInsureinfo().toJSONString(), CustomerInfoVo.class);
|
|
|
|
|
|
|
|
requestBodyC3.setQuotationNoCI(responseDataC2.getResponseBody().getQuotationNoCI());
|
|
requestBodyC3.setQuotationNoCI(responseDataC2.getResponseBody().getQuotationNoCI());
|
|
|
requestBodyC3.setQuotationNoBI(responseDataC2.getResponseBody().getQuotationNoBI());
|
|
requestBodyC3.setQuotationNoBI(responseDataC2.getResponseBody().getQuotationNoBI());
|
|
@@ -518,10 +513,9 @@ public class YongAnOrderServiceImpl implements YongAnOrderService {
|
|
|
ObjectMapper mapper = new XmlMapper();
|
|
ObjectMapper mapper = new XmlMapper();
|
|
|
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
|
|
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
|
|
|
//1.组装RequestBody
|
|
//1.组装RequestBody
|
|
|
- ResponseDataC2 responseDataC2 = JSONObject.parseObject(insAreaCompany.getReptxt().toJSONString(), ResponseDataC2.class);
|
|
|
|
|
|
|
+ ResponseDataC2 responseDataC2 = JSON.parseObject(insAreaCompany.getReptxt().toJSONString(), ResponseDataC2.class);
|
|
|
List<ExtendInfoDto> extendInfoList = responseDataC2.getResponseBody().getExtendInfo();
|
|
List<ExtendInfoDto> extendInfoList = responseDataC2.getResponseBody().getExtendInfo();
|
|
|
Map<String, String> maps = extendInfoList.stream().collect(LinkedHashMap::new, (m, v) -> m.put(v.getKey(), v.getValue()), LinkedHashMap::putAll);
|
|
Map<String, String> maps = extendInfoList.stream().collect(LinkedHashMap::new, (m, v) -> m.put(v.getKey(), v.getValue()), LinkedHashMap::putAll);
|
|
|
-// Map<String, String> maps = extendInfoList.stream().collect(Collectors.toMap(ExtendInfoDto::getKey, ExtendInfoDto::getValue, (key1, key2) -> key2));
|
|
|
|
|
requestBodyB7.setBzQueryNo(maps.get("querySequenceBZNo"));//交强
|
|
requestBodyB7.setBzQueryNo(maps.get("querySequenceBZNo"));//交强
|
|
|
requestBodyB7.setQueryNo(maps.get("querySequenceNo"));
|
|
requestBodyB7.setQueryNo(maps.get("querySequenceNo"));
|
|
|
DispatchDTO dispatchDTO = new DispatchDTO();
|
|
DispatchDTO dispatchDTO = new DispatchDTO();
|
|
@@ -529,10 +523,10 @@ public class YongAnOrderServiceImpl implements YongAnOrderService {
|
|
|
requestBodyB7.setCityCode("140400");
|
|
requestBodyB7.setCityCode("140400");
|
|
|
List<PrivyDTO> privy = new ArrayList<>();//关系人信息
|
|
List<PrivyDTO> privy = new ArrayList<>();//关系人信息
|
|
|
|
|
|
|
|
- CustomerInfoVo policyHolderInfo = JSONObject.parseObject(insOrders.getApplyinfo().toJSONString(), CustomerInfoVo.class);
|
|
|
|
|
|
|
+ CustomerInfoVo policyHolderInfo = JSON.parseObject(insOrders.getApplyinfo().toJSONString(), CustomerInfoVo.class);
|
|
|
PrivyDTO privyDTO = new PrivyDTO("1000", policyHolderInfo.getName(), policyHolderInfo.getIdentifyNumber());
|
|
PrivyDTO privyDTO = new PrivyDTO("1000", policyHolderInfo.getName(), policyHolderInfo.getIdentifyNumber());
|
|
|
privyDTO.setPhoneNo(policyHolderInfo.getMobile());
|
|
privyDTO.setPhoneNo(policyHolderInfo.getMobile());
|
|
|
- CustomerInfoVo insuredPersonInfo = JSONObject.parseObject(insOrders.getInsureinfo().toJSONString(), CustomerInfoVo.class);
|
|
|
|
|
|
|
+ CustomerInfoVo insuredPersonInfo = JSON.parseObject(insOrders.getInsureinfo().toJSONString(), CustomerInfoVo.class);
|
|
|
PrivyDTO privyDTO2 = new PrivyDTO("0100", insuredPersonInfo.getName(), insuredPersonInfo.getIdentifyNumber());
|
|
PrivyDTO privyDTO2 = new PrivyDTO("0100", insuredPersonInfo.getName(), insuredPersonInfo.getIdentifyNumber());
|
|
|
privyDTO2.setPhoneNo(insuredPersonInfo.getMobile());
|
|
privyDTO2.setPhoneNo(insuredPersonInfo.getMobile());
|
|
|
privy.add(privyDTO);
|
|
privy.add(privyDTO);
|