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

@ -6,6 +6,8 @@
# 5.7.19 (2021-12-29)
### 🐣新特性
* 【db 】 优化Condition参数拆分pr#2046@Github
### 🐞Bug修复
* 【http 】 HttpUtil重定向次数失效问题issue#I4O28Q@Gitee
* 【core 】 修复UrlPath空白path多/问题issue#I49KAL@Gitee

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));
}