Browse Source

更新

master
huangjiajun 3 months ago
parent
commit
1b17445788
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/super/implement/agent_invoice_db.go
  2. +1
    -1
      src/super/implement/medium_invoice_db.go

+ 1
- 1
src/super/implement/agent_invoice_db.go View File

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


+ 1
- 1
src/super/implement/medium_invoice_db.go View File

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


Loading…
Cancel
Save