From 17aaed743ab7a3520ec8eb9e4ab7c776ca807cdd Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期四, 12 十月 2023 20:43:16 +0800
Subject: [PATCH] bug修改

---
 service/invoice.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/service/invoice.go b/service/invoice.go
index 895c415..edb207e 100644
--- a/service/invoice.go
+++ b/service/invoice.go
@@ -139,8 +139,8 @@
 	return ecode.OK
 }
 
-func (InvoiceService) GetInvoiceList() ([]*model.Invoice, int64, int) {
-	list, total, err := model.NewInvoiceSearch().Find()
+func (InvoiceService) GetInvoiceList(params request.GetInvoiceList) ([]*model.Invoice, int64, int) {
+	list, total, err := model.NewInvoiceSearch().SetSourceId(params.SourceId).SetSourceType(params.SourceType).Find()
 	if err != nil {
 		return nil, 0, ecode.DBErr
 	}

--
Gitblit v1.8.0