code review:订单逻辑
This commit is contained in:
parent
8dd600a300
commit
28adfff10e
@ -26,10 +26,11 @@ public class TradeOrderDetailRespVO extends TradeOrderBaseVO {
|
|||||||
private MemberUserRespVO user;
|
private MemberUserRespVO user;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO 订单操作日志, 先模拟一波
|
* TODO 订单操作日志, 先模拟一波;返回 logs,简洁,然后复数哈
|
||||||
*/
|
*/
|
||||||
private List<OrderLog> orderLog;
|
private List<OrderLog> orderLog;
|
||||||
|
|
||||||
|
// TODO @puhui999:swagger 注解
|
||||||
@Data
|
@Data
|
||||||
public static class OrderLog {
|
public static class OrderLog {
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ public class TradeOrderQueryServiceImpl implements TradeOrderQueryService {
|
|||||||
throw exception(ORDER_NOT_FOUND);
|
throw exception(ORDER_NOT_FOUND);
|
||||||
}
|
}
|
||||||
|
|
||||||
return getTrackRespDTOs(order);
|
return getExpressTrackList(order);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -117,16 +117,16 @@ public class TradeOrderQueryServiceImpl implements TradeOrderQueryService {
|
|||||||
throw exception(ORDER_NOT_FOUND);
|
throw exception(ORDER_NOT_FOUND);
|
||||||
}
|
}
|
||||||
|
|
||||||
return getTrackRespDTOs(order);
|
return getExpressTrackList(order);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 得到物流轨迹
|
* 获得订单的物流轨迹
|
||||||
*
|
*
|
||||||
* @param order 订单
|
* @param order 订单
|
||||||
* @return 物流轨迹
|
* @return 物流轨迹
|
||||||
*/
|
*/
|
||||||
private List<ExpressTrackRespDTO> getTrackRespDTOs(TradeOrderDO order) {
|
private List<ExpressTrackRespDTO> getExpressTrackList(TradeOrderDO order) {
|
||||||
// 查询物流公司
|
// 查询物流公司
|
||||||
if (order.getLogisticsId() == null) {
|
if (order.getLogisticsId() == null) {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
|
Loading…
Reference in New Issue
Block a user