diff --git a/internal/dao/invoiceDao.go b/internal/dao/invoiceDao.go index 5eeb80d..93e047c 100644 --- a/internal/dao/invoiceDao.go +++ b/internal/dao/invoiceDao.go @@ -214,7 +214,9 @@ func GetInvoiceInfoByOrderNo(req *bundle.GetInvoiceInfoByOrderNoReq) (data []*mo invoice.paper_invocie_status AS paper_invocie_status `). 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).Find(&data).Error + Where("invoice.user_id = ?", req.UserId). + Order("invoice.apply_time DESC"). + Find(&data).Error if err != nil { return nil, err }