enhance Condition

This commit is contained in:
looly
2021-12-29 07:33:15 +08:00
parent e18bbdd741
commit e55857cc23
2 changed files with 6 additions and 3 deletions

View File

@@ -411,10 +411,11 @@ public class Condition extends CloneSupport<Condition> {
if (isPlaceHolder()) {
Collection<?> valuesForIn;
// 占位符对应值列表
if (value instanceof CharSequence) {
valuesForIn = StrUtil.split((CharSequence) value, ',');
} else if (value instanceof Collection) {
if (value instanceof Collection) {
// pr#2046@Github
valuesForIn = (Collection<?>) value;
} else if (value instanceof CharSequence) {
valuesForIn = StrUtil.split((CharSequence) value, ',');
} else {
valuesForIn = Arrays.asList(Convert.convert(Object[].class, value));
}