Merge remote-tracking branch 'origin/test' into test
# Conflicts: # lastleg-service/src/main/resources/openapi/overseas-business-v1.yaml
This commit is contained in:
@@ -72,6 +72,7 @@ public class LastlegOrderService {
|
||||
"OVERSEAS_CUSTOMS_COMPLETED", "ACTUAL_ARRIVAL_WAITING_UNLOAD", "PICKUP_APPOINTED", "UNLOADED");
|
||||
|
||||
@Resource private LastlegOrderMapper orderMapper;
|
||||
@Resource private com.baiyue.lastleg.returnreceipt.service.ReturnReceiptService returnReceipts;
|
||||
@Resource private LastlegOrderDetailMapper detailMapper;
|
||||
@Resource private LastlegOrderStatusHistoryMapper historyMapper;
|
||||
@Resource private OverseasFeeSourceService feeSources;
|
||||
@@ -366,7 +367,9 @@ public class LastlegOrderService {
|
||||
.map(value -> new LastlegOrderDetailResponse.History(value.getId(), value.getFromStatus(),
|
||||
value.getToStatus(), value.getRemark(), value.getCreatedAt())).toList(), fees, operations.stream()
|
||||
.map(value -> new LastlegOrderDetailResponse.Operation(value.getId(), value.getOperationNode(),
|
||||
value.getOperatorName(), value.getResult(), value.getCreatedAt())).toList());
|
||||
value.getOperatorName(), value.getResult(), value.getCreatedAt())).toList(),
|
||||
"RETURN_RELABEL".equals(order.getOrderType()) && StringUtils.hasText(order.getSourceOrderNo())
|
||||
? returnReceipts.detail(order.getCustomerId(), order.getSourceOrderNo()) : null);
|
||||
}
|
||||
|
||||
@Transactional
|
||||
@@ -671,7 +674,7 @@ public class LastlegOrderService {
|
||||
}
|
||||
|
||||
static String displayOrderNo(LastlegOrder order) {
|
||||
return "WAREHOUSE_TRANSFER".equals(order.getOrderType()) && StringUtils.hasText(order.getSourceOrderNo())
|
||||
return ("WAREHOUSE_TRANSFER".equals(order.getOrderType()) || "RETURN_RELABEL".equals(order.getOrderType())) && StringUtils.hasText(order.getSourceOrderNo())
|
||||
? order.getSourceOrderNo() : order.getOrderNo();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user