Pre Merge pull request !190 from codelearner1024/master-jdk17
commit
2ad9e88478
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue