Ver a proveniência

更新

master
huangjiajun há 3 meses
ascendente
cometimento
1b17445788
2 ficheiros alterados com 2 adições e 2 eliminações
  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 Ver ficheiro

@@ -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 Ver ficheiro

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


Carregando…
Cancelar
Guardar