From 1b174457882d8355c77dc2f9e08faa16ccf29cee Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 4 Sep 2024 10:35:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/super/implement/agent_invoice_db.go | 2 +- src/super/implement/medium_invoice_db.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/super/implement/agent_invoice_db.go b/src/super/implement/agent_invoice_db.go index 26dc5b2..120c160 100644 --- a/src/super/implement/agent_invoice_db.go +++ b/src/super/implement/agent_invoice_db.go @@ -29,7 +29,7 @@ func (m AgentInvoiceDb) GetAgentInvoice(settlementId int) (data *model.AgentInvo func (m AgentInvoiceDb) FindAgentInvoiceList(uuid, types string, page, limit int) (list []dao.AgentInvoiceGroup, total int64, err error) { sess := m.Db.OrderBy("agent_invoice.update_at desc,agent_invoice.id desc").Limit(limit, (page-1)*limit) if uuid != "" { - sess.And("agent_settlement.uuid = ?", uuid) + sess.And("agent_invoice.uuid = ?", uuid) } if types != "" { sess.And("agent_invoice.type = ?", types) diff --git a/src/super/implement/medium_invoice_db.go b/src/super/implement/medium_invoice_db.go index 2a5e721..2c1e1cf 100644 --- a/src/super/implement/medium_invoice_db.go +++ b/src/super/implement/medium_invoice_db.go @@ -41,7 +41,7 @@ func (m MediumInvoiceDb) GetMediumInvoiceById(id int) (data *model.MediumInvoice func (m MediumInvoiceDb) FindMediumInvoiceList(uuid, types, mediumId string, page, limit int) (list []dao.MediumInvoiceGroup, total int64, err error) { sess := m.Db.OrderBy("medium_invoice.update_at desc,medium_invoice.id desc").Limit(limit, (page-1)*limit) if uuid != "" { - sess.And("medium_settlement.uuid = ?", uuid) + sess.And("medium_invoice.uuid = ?", uuid) } if types != "" { sess.And("medium_invoice.type = ?", types)