Skip to content

Commit

Permalink
Update SqlCriteriaHelper.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhweicheng authored and abel533 committed Aug 8, 2020
1 parent 1523d57 commit 3c0b330
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ public SqlCriteriaHelper<T> orNotLike(Fn<T, Object> fn, String value) {
*/
public SqlCriteriaHelper<T> orNotLikeLeft(Fn<T, Object> fn, String value) {
if(Optional.ofNullable(value).isPresent()){
value = "%"+value+"%";
value = "%"+value;
this.criteria.getCriterions().add(new Sqls.Criterion(Reflections.fnToFieldName(fn), value, "not like", "or"));
}
return this;
Expand Down

0 comments on commit 3c0b330

Please sign in to comment.