optimise:当数据库查询不到数据时,返回了 "[]",需要兼容一下
parent
5b81612086
commit
d3092aa8be
|
@ -49,7 +49,8 @@ public class LongListTypeHandler implements TypeHandler<List<Long>> {
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<Long> getResult(String value) {
|
private List<Long> getResult(String value) {
|
||||||
if (value == null) {
|
// 当数据库查询不到数据时,返回了 "[]",需要兼容一下
|
||||||
|
if (value == null || "[]".equals(value)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return StrUtils.splitToLong(value, COMMA);
|
return StrUtils.splitToLong(value, COMMA);
|
||||||
|
|
Loading…
Reference in New Issue