tagList;
@RelationOneToMany(
selfField = "diseaseIds",
- splitBy = ",", //使用 , 进行分割
+ selfFieldSplitBy = ",", //使用 , 进行分割
targetField = "diseaseId", //测试目标字段是字符串类型是否正常转换
mapKeyField = "diseaseId" //测试Map映射
)
diff --git a/mybatis-flex-annotation/src/main/java/com/mybatisflex/annotation/RelationOneToMany.java b/mybatis-flex-annotation/src/main/java/com/mybatisflex/annotation/RelationOneToMany.java
index c352631b..969ec353 100644
--- a/mybatis-flex-annotation/src/main/java/com/mybatisflex/annotation/RelationOneToMany.java
+++ b/mybatis-flex-annotation/src/main/java/com/mybatisflex/annotation/RelationOneToMany.java
@@ -38,7 +38,7 @@ public @interface RelationOneToMany {
* 当前字段值根据字符串分割
* @return 分割字符串
*/
- String splitBy() default "";
+ String selfFieldSplitBy() default "";
/**
*
diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/relation/OneToMany.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/relation/OneToMany.java
index ed6fad0a..162c9caf 100644
--- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/relation/OneToMany.java
+++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/relation/OneToMany.java
@@ -35,7 +35,7 @@ class OneToMany extends ToManyRelation {
, annotation.extraCondition()
, annotation.selectColumns());
- this.splitBy = annotation.splitBy();
+ this.selfFieldSplitBy = annotation.selfFieldSplitBy();
this.orderBy = annotation.orderBy();
this.limit = annotation.limit();
diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/relation/ToManyRelation.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/relation/ToManyRelation.java
index 607e9367..d8e643bb 100644
--- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/relation/ToManyRelation.java
+++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/relation/ToManyRelation.java
@@ -29,8 +29,7 @@ class ToManyRelation extends AbstractRelation {
protected FieldWrapper mapKeyFieldWrapper;
protected String orderBy;
protected long limit = 0;
- protected String splitBy;
-
+ protected String selfFieldSplitBy;
public ToManyRelation(String selfField, String targetSchema, String targetTable, String targetField, String valueField,
@@ -52,16 +51,16 @@ class ToManyRelation extends AbstractRelation {
*/
@Override
public QueryWrapper buildQueryWrapper(Set