update
This commit is contained in:
@ -40,6 +40,9 @@ func snapFilterScope(q dto.StreetSnapQuery) func(*gorm.DB) *gorm.DB {
|
||||
if q.Year != 0 {
|
||||
db = db.Where("year = ?", q.Year)
|
||||
}
|
||||
if q.City != "" {
|
||||
db = db.Where("city = ?", q.City)
|
||||
}
|
||||
return db
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user