fix
This commit is contained in:
@@ -121,6 +121,13 @@ func BuildEncryptedQuery(ctx context.Context, svcCtx *svc.ServiceContext, queryM
|
|||||||
}
|
}
|
||||||
query.Product = product.ProductEn
|
query.Product = product.ProductEn
|
||||||
query.ProductName = product.ProductName
|
query.ProductName = product.ProductName
|
||||||
|
|
||||||
|
// 获取订单信息,添加订单金额
|
||||||
|
order, orderErr := svcCtx.OrderModel.FindOne(ctx, queryModel.OrderId)
|
||||||
|
if orderErr == nil {
|
||||||
|
query.Amount = order.Amount
|
||||||
|
}
|
||||||
|
|
||||||
queryBytes, marshalErr := json.Marshal(query)
|
queryBytes, marshalErr := json.Marshal(query)
|
||||||
if marshalErr != nil {
|
if marshalErr != nil {
|
||||||
return "", errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "报告查询, 序列化查询结果失败: %v", marshalErr)
|
return "", errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "报告查询, 序列化查询结果失败: %v", marshalErr)
|
||||||
|
|||||||
Reference in New Issue
Block a user