mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
enhance Condition
This commit is contained in:
parent
e18bbdd741
commit
e55857cc23
@ -6,6 +6,8 @@
|
|||||||
# 5.7.19 (2021-12-29)
|
# 5.7.19 (2021-12-29)
|
||||||
|
|
||||||
### 🐣新特性
|
### 🐣新特性
|
||||||
|
* 【db 】 优化Condition参数拆分(pr#2046@Github)
|
||||||
|
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
* 【http 】 HttpUtil重定向次数失效问题(issue#I4O28Q@Gitee)
|
* 【http 】 HttpUtil重定向次数失效问题(issue#I4O28Q@Gitee)
|
||||||
* 【core 】 修复UrlPath空白path多/问题(issue#I49KAL@Gitee)
|
* 【core 】 修复UrlPath空白path多/问题(issue#I49KAL@Gitee)
|
||||||
|
@ -411,10 +411,11 @@ public class Condition extends CloneSupport<Condition> {
|
|||||||
if (isPlaceHolder()) {
|
if (isPlaceHolder()) {
|
||||||
Collection<?> valuesForIn;
|
Collection<?> valuesForIn;
|
||||||
// 占位符对应值列表
|
// 占位符对应值列表
|
||||||
if (value instanceof CharSequence) {
|
if (value instanceof Collection) {
|
||||||
valuesForIn = StrUtil.split((CharSequence) value, ',');
|
// pr#2046@Github
|
||||||
} else if (value instanceof Collection) {
|
|
||||||
valuesForIn = (Collection<?>) value;
|
valuesForIn = (Collection<?>) value;
|
||||||
|
} else if (value instanceof CharSequence) {
|
||||||
|
valuesForIn = StrUtil.split((CharSequence) value, ',');
|
||||||
} else {
|
} else {
|
||||||
valuesForIn = Arrays.asList(Convert.convert(Object[].class, value));
|
valuesForIn = Arrays.asList(Convert.convert(Object[].class, value));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user