新增解密收货人

This commit is contained in:
2023-09-11 17:29:39 +08:00
parent 615982cd19
commit a05fd1d50d
4 changed files with 69 additions and 2 deletions
+15
View File
@@ -276,3 +276,18 @@ func (r *OrderProductService) CancelOrderProduct(orderProductId int64) (bool, er
return true, nil
}
// GetOrderProductConsignee 获取药品订单收货人数据
func (r *OrderProductService) GetOrderProductConsignee(orderProductId int64) (*orderProductResponse.GetOrderProductConsignee, error) {
// 获取药品订单数据
orderProductDao := dao.OrderProductDao{}
orderProduct, err := orderProductDao.GetOrderProductById(orderProductId)
if err != nil || orderProduct == nil {
return nil, errors.New(err.Error())
}
// 处理返回值
u := orderProductResponse.GetOrderProductConsigneeResponse(orderProduct)
return u, nil
}