|
|
@@ -997,8 +997,12 @@ public class TransportServiceImpl implements TransportRemoteService {
|
|
|
kwtLogisticsOrderVO.setLossUnit(logOrder.getLossUnit());
|
|
|
kwtLogisticsOrderVO.setGoodsPrice(logOrder.getGoodsPrice());
|
|
|
kwtLogisticsOrderVO.setGoodsPriceUnit(logOrder.getGoodsPriceUnit());
|
|
|
- kwtLogisticsOrderVO.setStartTime(Date.from(logOrder.getStartTime().atZone(ZoneId.systemDefault()).toInstant()));
|
|
|
- kwtLogisticsOrderVO.setEntTime(Date.from(logOrder.getEndTime().atZone(ZoneId.systemDefault()).toInstant()));
|
|
|
+ if (logOrder.getStartTime() != null){
|
|
|
+ kwtLogisticsOrderVO.setStartTime(Date.from(logOrder.getStartTime().atZone(ZoneId.systemDefault()).toInstant()));
|
|
|
+ }
|
|
|
+ if (logOrder.getEndTime() != null){
|
|
|
+ kwtLogisticsOrderVO.setEntTime(Date.from(logOrder.getEndTime().atZone(ZoneId.systemDefault()).toInstant()));
|
|
|
+ }
|
|
|
kwtLogisticsOrderVO.setSubcontractAmount(logOrder.getSubcontractAmount());
|
|
|
kwtLogisticsOrderVO.setEntrustAmount(logOrder.getEntrustAmount());
|
|
|
kwtLogisticsOrderVO.setUnloadAmount(logOrder.getUnloadAmount());
|
|
|
@@ -1110,6 +1114,21 @@ public class TransportServiceImpl implements TransportRemoteService {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<KwtLogisticsOrderVO> getLogisticOrderList(OrderFinishParam param) {
|
|
|
+ if(Objects.isNull(param.getTradeOrderId())){
|
|
|
+ throw new BusinessException("贸易订单id不能为空");
|
|
|
+ }
|
|
|
+ List<KwtLogisticsOrder> kwtLogisticsOrders = logisticsOrderRepository.queryByTradeOrderId(param.getTradeOrderId());
|
|
|
+ if (CollectionUtils.isEmpty(kwtLogisticsOrders)){
|
|
|
+ return List.of();
|
|
|
+ }
|
|
|
+ return kwtLogisticsOrders.stream()
|
|
|
+ .map(TransportServiceImpl::getLogisticsOrderVo)
|
|
|
+ .collect(Collectors.toList());
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
@NotNull
|
|
|
private static AddLogisticOrderDTO getAddLogisticOrderDTO(AddLogisticOrderParam param) {
|
|
|
AddLogisticOrderDTO addLogisticOrderDTO = new AddLogisticOrderDTO();
|