diff --git a/app/main/api/internal/logic/query/query_common.go b/app/main/api/internal/logic/query/query_common.go index 30cdfd2..d5e1b86 100644 --- a/app/main/api/internal/logic/query/query_common.go +++ b/app/main/api/internal/logic/query/query_common.go @@ -121,6 +121,13 @@ func BuildEncryptedQuery(ctx context.Context, svcCtx *svc.ServiceContext, queryM } query.Product = product.ProductEn query.ProductName = product.ProductName + + // 获取订单信息,添加订单金额 + order, orderErr := svcCtx.OrderModel.FindOne(ctx, queryModel.OrderId) + if orderErr == nil { + query.Amount = order.Amount + } + queryBytes, marshalErr := json.Marshal(query) if marshalErr != nil { return "", errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "报告查询, 序列化查询结果失败: %v", marshalErr)