Skip to content

Commit

Permalink
like改bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hulutech-web committed Oct 11, 2024
1 parent 71ec348 commit e98fc24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paginator.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (h *HttpResult) SearchByParams(params map[string]string, conditionMap map[s
if value == "" || key == "pageSize" || key == "total" || key == "currentPage" || key == "sort" || key == "order" {
continue
} else {
q = q.Where(key, gorm.Expr(" like ? %"+value+"%"))
q = q.Where(key, gorm.Expr(" like %"+value+"%"))
}
}
return q
Expand Down

0 comments on commit e98fc24

Please sign in to comment.