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)
|
||||
|
||||
### 🐣新特性
|
||||
* 【db 】 优化Condition参数拆分(pr#2046@Github)
|
||||
|
||||
### 🐞Bug修复
|
||||
* 【http 】 HttpUtil重定向次数失效问题(issue#I4O28Q@Gitee)
|
||||
* 【core 】 修复UrlPath空白path多/问题(issue#I49KAL@Gitee)
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user