瀏覽代碼

更新

master
huangjiajun 3 月之前
父節點
當前提交
1b17445788
共有 2 個檔案被更改,包括 2 行新增2 行删除
  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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存