diff --git a/api/service/orderProduct.go b/api/service/orderProduct.go index 382e251..cef52de 100644 --- a/api/service/orderProduct.go +++ b/api/service/orderProduct.go @@ -134,7 +134,17 @@ func (r *OrderProductService) GetOrderProductLogistics(orderProductId int64) (u return nil, nil } - u = &orderProductLogisticsResponse.OrderProductLogistics{} + u = &orderProductLogisticsResponse.OrderProductLogistics{ + LogisticsId: fmt.Sprintf("%d", orderProductLogistics.LogisticsId), + OrderProductId: fmt.Sprintf("%d", orderProductLogistics.OrderProductId), + LogisticsStatus: orderProductLogistics.LogisticsStatus, + LogisticsNo: orderProductLogistics.LogisticsNo, + CompanyName: orderProductLogistics.CompanyName, + CompanyCode: orderProductLogistics.CompanyCode, + LogisticsContent: orderProductLogistics.LogisticsContent, + CreatedAt: orderProductLogistics.CreatedAt, + UpdatedAt: orderProductLogistics.UpdatedAt, + } return u, nil }