mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-10-13 21:30:25 +00:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -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)){
|
||||
|
@@ -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)){
|
||||
|
@@ -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)){
|
||||
|
Reference in New Issue
Block a user