Skip to content

Commit 49cd4d6

Browse files
committed
andIn和andNotIn参数改为Collection
1 parent 6a9a69c commit 49cd4d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/tk/mybatis/mapper/entity/Example.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,12 @@ public Criteria andLessThanOrEqualTo(String property, Object value) {
375375
return (Criteria) this;
376376
}
377377

378-
public Criteria andIn(String property, List<?> values) {
378+
public Criteria andIn(String property, Collection<?> values) {
379379
addCriterion(column(property) + " in", values, property(property));
380380
return (Criteria) this;
381381
}
382382

383-
public Criteria andNotIn(String property, List<?> values) {
383+
public Criteria andNotIn(String property, Collection<?> values) {
384384
addCriterion(column(property) + " not in", values, property(property));
385385
return (Criteria) this;
386386
}
@@ -518,7 +518,7 @@ protected Criterion(String condition, Object value, String typeHandler) {
518518
this.condition = condition;
519519
this.value = value;
520520
this.typeHandler = typeHandler;
521-
if (value instanceof List<?>) {
521+
if (value instanceof Collection<?>) {
522522
this.listValue = true;
523523
} else {
524524
this.singleValue = true;

0 commit comments

Comments
 (0)