Showing
1 changed file
with
2 additions
and
1 deletions
@@ -11,6 +11,7 @@ package org.thingsboard.server.dao.yunteng.mapper; | @@ -11,6 +11,7 @@ package org.thingsboard.server.dao.yunteng.mapper; | ||
11 | * @Copyright 2016-2018 - Powered By 云腾五洲 | 11 | * @Copyright 2016-2018 - Powered By 云腾五洲 |
12 | */ | 12 | */ |
13 | 13 | ||
14 | +import org.apache.commons.lang3.StringUtils; | ||
14 | import org.apache.ibatis.type.BaseTypeHandler; | 15 | import org.apache.ibatis.type.BaseTypeHandler; |
15 | import org.apache.ibatis.type.JdbcType; | 16 | import org.apache.ibatis.type.JdbcType; |
16 | 17 | ||
@@ -48,6 +49,6 @@ public class ListStringTypeHandler extends BaseTypeHandler { | @@ -48,6 +49,6 @@ public class ListStringTypeHandler extends BaseTypeHandler { | ||
48 | @Override | 49 | @Override |
49 | public void setNonNullParameter(PreparedStatement ps, int i, | 50 | public void setNonNullParameter(PreparedStatement ps, int i, |
50 | Object parameter, JdbcType jdbcType) throws SQLException { | 51 | Object parameter, JdbcType jdbcType) throws SQLException { |
51 | - ps.setString(i, ((List) parameter).toString()); | 52 | + ps.setString(i, StringUtils.join((List) parameter,",")); |
52 | } | 53 | } |
53 | } | 54 | } |