|
|
@@ -29,7 +29,7 @@ public class StringListTypeHandler extends BaseTypeHandler<List<String>> {
|
|
|
throws SQLException {
|
|
|
|
|
|
String sqlJson = rs.getString(columnName);
|
|
|
- if (null != sqlJson){
|
|
|
+ if (StringUtils.isNotBlank(sqlJson)){
|
|
|
return Arrays.asList(sqlJson.split(StringPool.COMMA));
|
|
|
}
|
|
|
return null;
|
|
|
@@ -40,8 +40,8 @@ public class StringListTypeHandler extends BaseTypeHandler<List<String>> {
|
|
|
public List<String> getNullableResult(ResultSet rs, int columnIndex)
|
|
|
throws SQLException {
|
|
|
String sqlJson = rs.getString(columnIndex);
|
|
|
- if (null != sqlJson){
|
|
|
- return Arrays.asList(sqlJson.split(","));
|
|
|
+ if (StringUtils.isNotBlank(sqlJson)){
|
|
|
+ return Arrays.asList(sqlJson.split(StringPool.COMMA));
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
@@ -51,8 +51,8 @@ public class StringListTypeHandler extends BaseTypeHandler<List<String>> {
|
|
|
public List<String> getNullableResult(CallableStatement cs, int columnIndex)
|
|
|
throws SQLException {
|
|
|
String sqlJson = cs.getString(columnIndex);
|
|
|
- if (null != sqlJson){
|
|
|
- return Arrays.asList(sqlJson.split(","));
|
|
|
+ if (StringUtils.isNotBlank(sqlJson)){
|
|
|
+ return Arrays.asList(sqlJson.split(StringPool.COMMA));
|
|
|
}
|
|
|
return null;
|
|
|
}
|