diff --git a/internal/dao/invoiceDao.go b/internal/dao/invoiceDao.go index 58682da..0391d26 100644 --- a/internal/dao/invoiceDao.go +++ b/internal/dao/invoiceDao.go @@ -219,7 +219,7 @@ func GetInvoiceInfoByOrderNo(req *bundle.GetInvoiceInfoByOrderNoReq) (data []*mo `). Joins("left join bundle_order_records bor on invoice.order_no = bor.order_no and bor.deleted_at is null"). Where("invoice.user_id = ?", req.UserId). - Order("invoice.apply_time DESC"). + Order("bor.pay_time DESC"). Find(&data).Error if err != nil { return nil, err