This commit is contained in:
2025-12-29 15:14:48 +08:00
parent 9d428a32dc
commit 4a48add783

View File

@@ -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)