diff --git a/bootx-platform/bootx-platform-common/common-mybatis-plus/src/main/java/cn/bootx/platform/common/mybatisplus/handler/IntegerListTypeHandler.java b/bootx-platform/bootx-platform-common/common-mybatis-plus/src/main/java/cn/bootx/platform/common/mybatisplus/handler/IntegerListTypeHandler.java index 751bd4fd..1027b8e8 100644 --- a/bootx-platform/bootx-platform-common/common-mybatis-plus/src/main/java/cn/bootx/platform/common/mybatisplus/handler/IntegerListTypeHandler.java +++ b/bootx-platform/bootx-platform-common/common-mybatis-plus/src/main/java/cn/bootx/platform/common/mybatisplus/handler/IntegerListTypeHandler.java @@ -8,6 +8,7 @@ import org.apache.ibatis.type.JdbcType; import org.apache.ibatis.type.MappedJdbcTypes; import org.apache.ibatis.type.MappedTypes; +import java.lang.reflect.Field; import java.util.List; /** @@ -19,13 +20,15 @@ import java.util.List; @MappedJdbcTypes({JdbcType.VARCHAR,JdbcType.LONGVARCHAR}) public class IntegerListTypeHandler extends AbstractJsonTypeHandler> { - /** - * 默认初始化 - */ + public IntegerListTypeHandler(Class type) { super(type); } + public IntegerListTypeHandler(Class type, Field field) { + super(type, field); + } + @Override public List parse(String json) { if (StrUtil.isNotBlank(json)){ diff --git a/bootx-platform/bootx-platform-common/common-mybatis-plus/src/main/java/cn/bootx/platform/common/mybatisplus/handler/LongListTypeHandler.java b/bootx-platform/bootx-platform-common/common-mybatis-plus/src/main/java/cn/bootx/platform/common/mybatisplus/handler/LongListTypeHandler.java index 317998f1..7c887596 100644 --- a/bootx-platform/bootx-platform-common/common-mybatis-plus/src/main/java/cn/bootx/platform/common/mybatisplus/handler/LongListTypeHandler.java +++ b/bootx-platform/bootx-platform-common/common-mybatis-plus/src/main/java/cn/bootx/platform/common/mybatisplus/handler/LongListTypeHandler.java @@ -8,6 +8,7 @@ import org.apache.ibatis.type.JdbcType; import org.apache.ibatis.type.MappedJdbcTypes; import org.apache.ibatis.type.MappedTypes; +import java.lang.reflect.Field; import java.util.List; /** @@ -19,13 +20,14 @@ import java.util.List; @MappedJdbcTypes({JdbcType.VARCHAR,JdbcType.LONGVARCHAR}) public class LongListTypeHandler extends AbstractJsonTypeHandler> { - /** - * 默认初始化 - */ + public LongListTypeHandler(Class type) { super(type); } + public LongListTypeHandler(Class type, Field field) { + super(type, field); + } @Override public List parse(String json) { if (StrUtil.isNotBlank(json)){ diff --git a/bootx-platform/bootx-platform-common/common-mybatis-plus/src/main/java/cn/bootx/platform/common/mybatisplus/handler/StringListTypeHandler.java b/bootx-platform/bootx-platform-common/common-mybatis-plus/src/main/java/cn/bootx/platform/common/mybatisplus/handler/StringListTypeHandler.java index f36ddd2a..c0b82ad2 100644 --- a/bootx-platform/bootx-platform-common/common-mybatis-plus/src/main/java/cn/bootx/platform/common/mybatisplus/handler/StringListTypeHandler.java +++ b/bootx-platform/bootx-platform-common/common-mybatis-plus/src/main/java/cn/bootx/platform/common/mybatisplus/handler/StringListTypeHandler.java @@ -9,6 +9,7 @@ import org.apache.ibatis.type.JdbcType; import org.apache.ibatis.type.MappedJdbcTypes; import org.apache.ibatis.type.MappedTypes; +import java.lang.reflect.Field; import java.util.List; /** @@ -19,12 +20,14 @@ import java.util.List; @MappedTypes(List.class) @MappedJdbcTypes({JdbcType.VARCHAR,JdbcType.LONGVARCHAR}) public class StringListTypeHandler extends AbstractJsonTypeHandler> { - private static final String COMMA = ","; - public StringListTypeHandler() { - super(List.class); + public StringListTypeHandler(Class type) { + super(type); } + public StringListTypeHandler(Class type, Field field) { + super(type, field); + } @Override public List parse(String json) { if (StrUtil.isNotBlank(json)){