订单优化

pull/1121/head
梁宇奇 2025-11-25 18:34:17 +08:00
parent 48b79c1386
commit 21b0e93e2a
3 changed files with 10 additions and 0 deletions

View File

@ -252,6 +252,9 @@ public class StoreOrderPageItemVO extends StoreOrderDTO {
@ApiModelProperty(value = "平台介入结果")
private String platformInvolveResult;
@ApiModelProperty(value = "平台发货标识")
private Boolean shipByPlatformFlag;
@ApiModelProperty(value = "物流运单号(快递单号)信息集合")
private List<ExpressWaybillNoInfoVO> expressWaybillNoInfos;

View File

@ -32,6 +32,8 @@ public class StoreOrderPageItemDTO extends StoreOrderDTO {
private String destinationCountyName;
private Boolean shipByPlatformFlag;
private List<StoreOrderDetailInfoDTO> orderDetails;
private List<ExpressWaybillNoInfoDTO> expressWaybillNoInfos;

View File

@ -579,6 +579,7 @@ public class StoreOrderServiceImpl implements IStoreOrderService {
order.setOriginCountyName(regionMap.get(order.getOriginCountyCode()));
order.setOrderDetails(orderDetailGroup.get(order.getId()));
Set<ExpressWaybillNoInfoDTO> expressWaybillNoInfos = new LinkedHashSet<>();
boolean shipByPlatformFlag = false;
for (StoreOrderDetailInfoDTO detail : order.getOrderDetails()) {
//首图
detail.setFirstMainPicUrl(mainPicMap.get(detail.getStoreProdId()));
@ -590,8 +591,12 @@ public class StoreOrderServiceImpl implements IStoreOrderService {
expressWaybillNoInfos.add(new ExpressWaybillNoInfoDTO(eId, eName, no));
}
}
if (EExpressType.PLATFORM.getValue().equals(detail.getExpressType())) {
shipByPlatformFlag = true;
}
}
order.setExpressWaybillNoInfos(new ArrayList<>(expressWaybillNoInfos));
order.setShipByPlatformFlag(shipByPlatformFlag);
}
}
return list;