Bladeren bron

更新

master
huangjiajun 2 maanden geleden
bovenliggende
commit
1b17445788
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  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 Bestand weergeven

@@ -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 Bestand weergeven

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


Laden…
Annuleren
Opslaan