Pre Merge pull request !190 from codelearner1024/master-jdk17

pull/190/MERGE
codelearner1024 2025-05-23 05:32:06 +00:00 committed by Gitee
commit 2ad9e88478
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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);