|
@@ -1,5 +1,6 @@
|
|
|
package com.jzg.quotation.guoren.crawler.entity.request;
|
|
package com.jzg.quotation.guoren.crawler.entity.request;
|
|
|
|
|
|
|
|
|
|
+import com.alibaba.excel.util.StringUtils;
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
import com.jzg.commons.entity.quote.vo.AccidentalDrivingVo;
|
|
import com.jzg.commons.entity.quote.vo.AccidentalDrivingVo;
|
|
|
import com.jzg.commons.entity.quote.vo.CustomerInfoVo;
|
|
import com.jzg.commons.entity.quote.vo.CustomerInfoVo;
|
|
@@ -50,7 +51,7 @@ public class GuoRenCrawlerQueryQuotationRequest implements Serializable {
|
|
|
DataDTO dataDTO = new DataDTO();
|
|
DataDTO dataDTO = new DataDTO();
|
|
|
GoodsListDTO goodsListDTO = new GoodsListDTO();
|
|
GoodsListDTO goodsListDTO = new GoodsListDTO();
|
|
|
goodsListDTO.setClassifyCode("A");
|
|
goodsListDTO.setClassifyCode("A");
|
|
|
- goodsListDTO.setGoodsCode(accidentalDriving.getParentProductCode());
|
|
|
|
|
|
|
+ goodsListDTO.setGoodsCode(StringUtils.isBlank(accidentalDriving.getParentProductCode()) ? accidentalDriving.getProductCode() : accidentalDriving.getParentProductCode());
|
|
|
goodsListDTO.setProdCode(accidentalDriving.getProductCode());
|
|
goodsListDTO.setProdCode(accidentalDriving.getProductCode());
|
|
|
goodsListDTO.setStartDate(quoteVo.getCiRiskInfoVo() != null
|
|
goodsListDTO.setStartDate(quoteVo.getCiRiskInfoVo() != null
|
|
|
? TimeProcessing.dateTimeToDate(quoteVo.getCiRiskInfoVo().getStartDate()) + " 00:00:00"
|
|
? TimeProcessing.dateTimeToDate(quoteVo.getCiRiskInfoVo().getStartDate()) + " 00:00:00"
|