Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
DaxPay
2025-02-06 13:52:56 +08:00
3 changed files with 17 additions and 9 deletions

View File

@@ -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<List<Integer>> {
/**
* 默认初始化
*/
public IntegerListTypeHandler(Class<?> type) {
super(type);
}
public IntegerListTypeHandler(Class<?> type, Field field) {
super(type, field);
}
@Override
public List<Integer> parse(String json) {
if (StrUtil.isNotBlank(json)){

View File

@@ -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<List<Long>> {
/**
* 默认初始化
*/
public LongListTypeHandler(Class<?> type) {
super(type);
}
public LongListTypeHandler(Class<?> type, Field field) {
super(type, field);
}
@Override
public List<Long> parse(String json) {
if (StrUtil.isNotBlank(json)){

View File

@@ -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<List<String>> {
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<String> parse(String json) {
if (StrUtil.isNotBlank(json)){