提交 5a0d9f31 authored 作者: aiqingguo's avatar aiqingguo

承运同步-挂车同步

上级 34179fc7
......@@ -81,7 +81,7 @@ public class OrderChildTruckInfoDTO {
@ApiModelProperty("挂车行驶证副页背面")
private String licenceImgSecond2Back;
@ApiModelProperty("挂车年检有效期至")
private LocalDateTime licenceImgMain2EndTime;
private String licenceImgMain2EndTime;
@ApiModelProperty("挂车道路运输许可证编号")
private String roadTransportCertificateNo2;
@ApiModelProperty("挂车道路运输许可证图片地址")
......
package com.clx.performance.service.impl;
import cn.hutool.json.JSON;
import cn.hutool.json.JSONUtil;
import com.clx.order.feign.AddressFeign;
import com.clx.order.feign.OrderFeign;
import com.clx.order.vo.feign.FeignAddressVO;
......@@ -34,7 +32,7 @@ import java.math.RoundingMode;
import java.time.LocalDateTime;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.Objects;
@Service
@Slf4j
......@@ -216,6 +214,18 @@ public class TransportSyncServiceImpl implements TransportSyncService {
truckInfoDTO.setRegisterDate(truckInfoFeignVo.getRegisterDate() == null ? null : DateUtils.formatDateTime(truckInfoFeignVo.getRegisterDate()).get());
truckInfoDTO.setLicenceIssueDate(truckInfoFeignVo.getLicenceIssueDate() == null ? null : DateUtils.formatDateTime(truckInfoFeignVo.getLicenceIssueDate()).get());
truckInfoDTO.setDrivingLicenseEndTime(truckInfoFeignVo.getLicenceImgMainEndTime() == null ? null : DateUtils.formatDateTime(truckInfoFeignVo.getLicenceImgMainEndTime()).get());
// 挂车
if (Objects.equals(truckInfoFeignVo.getTruckType(), 1)) {
truckInfoDTO.setTruckNo2(truckInfoFeignVo.getTruckNo2());
truckInfoDTO.setLicenceImgMain2(StringUtils.isBlank(truckInfoFeignVo.getLicenceImgMain2())? null : documentFeign.getHost() + truckInfoFeignVo.getLicenceImgMain2());
truckInfoDTO.setLicenceImgSecond2(StringUtils.isBlank(truckInfoFeignVo.getLicenceImgSecond2())? null : documentFeign.getHost() + truckInfoFeignVo.getLicenceImgSecond2());
truckInfoDTO.setLicenceImgSecond2Back(StringUtils.isBlank(truckInfoFeignVo.getLicenceImgSecond2Back())? null : documentFeign.getHost() + truckInfoFeignVo.getLicenceImgSecond2Back());
truckInfoDTO.setLicenceImgMain2EndTime(truckInfoFeignVo.getLicenceImgMain2EndTime()==null? null : DateUtils.formatDateTime(truckInfoFeignVo.getLicenceImgMain2EndTime()).get());
truckInfoDTO.setRoadTransportCertificateNo2(truckInfoFeignVo.getRoadTransportCertificateNo2());
truckInfoDTO.setTransportLicenceImg2(StringUtils.isBlank(truckInfoFeignVo.getTransportLicenceImg2())? null : documentFeign.getHost() + truckInfoFeignVo.getTransportLicenceImg2());
}
param.setTruckInfoDTO(truckInfoDTO);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论