optimise:当数据库查询不到数据时,返回了 "[]",需要兼容一下

pull/190/head
wuweigang 2025-05-09 00:40:55 +08:00
parent 5b81612086
commit d3092aa8be
1 changed files with 2 additions and 1 deletions

View File

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