liujiandao
2023-10-12 17aaed743ab7a3520ec8eb9e4ab7c776ca807cdd
model/receipt.go
@@ -88,6 +88,9 @@
   if slf.SourceId != 0 {
      db = db.Where("source_id = ?", slf.SourceId)
   }
   if slf.ClientId != 0 {
      db = db.Where("client_id = ?", slf.ClientId)
   }
   return db
}
@@ -124,6 +127,11 @@
   return slf
}
func (slf *ReceiptSearch) SetClientId(clientId int) *ReceiptSearch {
   slf.ClientId = clientId
   return slf
}
func (slf *ReceiptSearch) SetOrm(tx *gorm.DB) *ReceiptSearch {
   slf.Orm = tx
   return slf