diff --git a/backend/src/main/java/io/metersphere/base/domain/CustomFieldTemplate.java b/backend/src/main/java/io/metersphere/base/domain/CustomFieldTemplate.java index b60ba64199..7fd6d16606 100644 --- a/backend/src/main/java/io/metersphere/base/domain/CustomFieldTemplate.java +++ b/backend/src/main/java/io/metersphere/base/domain/CustomFieldTemplate.java @@ -21,5 +21,7 @@ public class CustomFieldTemplate implements Serializable { private String customData; + private Boolean isThirdPart; + private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/backend/src/main/java/io/metersphere/base/domain/CustomFieldTemplateExample.java b/backend/src/main/java/io/metersphere/base/domain/CustomFieldTemplateExample.java index 5d9f223f25..4296924ecb 100644 --- a/backend/src/main/java/io/metersphere/base/domain/CustomFieldTemplateExample.java +++ b/backend/src/main/java/io/metersphere/base/domain/CustomFieldTemplateExample.java @@ -643,6 +643,66 @@ public class CustomFieldTemplateExample { addCriterion("custom_data not between", value1, value2, "customData"); return (Criteria) this; } + + public Criteria andIsThirdPartIsNull() { + addCriterion("is_third_part is null"); + return (Criteria) this; + } + + public Criteria andIsThirdPartIsNotNull() { + addCriterion("is_third_part is not null"); + return (Criteria) this; + } + + public Criteria andIsThirdPartEqualTo(Boolean value) { + addCriterion("is_third_part =", value, "isThirdPart"); + return (Criteria) this; + } + + public Criteria andIsThirdPartNotEqualTo(Boolean value) { + addCriterion("is_third_part <>", value, "isThirdPart"); + return (Criteria) this; + } + + public Criteria andIsThirdPartGreaterThan(Boolean value) { + addCriterion("is_third_part >", value, "isThirdPart"); + return (Criteria) this; + } + + public Criteria andIsThirdPartGreaterThanOrEqualTo(Boolean value) { + addCriterion("is_third_part >=", value, "isThirdPart"); + return (Criteria) this; + } + + public Criteria andIsThirdPartLessThan(Boolean value) { + addCriterion("is_third_part <", value, "isThirdPart"); + return (Criteria) this; + } + + public Criteria andIsThirdPartLessThanOrEqualTo(Boolean value) { + addCriterion("is_third_part <=", value, "isThirdPart"); + return (Criteria) this; + } + + public Criteria andIsThirdPartIn(List values) { + addCriterion("is_third_part in", values, "isThirdPart"); + return (Criteria) this; + } + + public Criteria andIsThirdPartNotIn(List values) { + addCriterion("is_third_part not in", values, "isThirdPart"); + return (Criteria) this; + } + + public Criteria andIsThirdPartBetween(Boolean value1, Boolean value2) { + addCriterion("is_third_part between", value1, value2, "isThirdPart"); + return (Criteria) this; + } + + public Criteria andIsThirdPartNotBetween(Boolean value1, Boolean value2) { + addCriterion("is_third_part not between", value1, value2, "isThirdPart"); + return (Criteria) this; + } } public static class Criteria extends GeneratedCriteria { diff --git a/backend/src/main/java/io/metersphere/base/mapper/CustomFieldTemplateMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/CustomFieldTemplateMapper.xml index 512b39030f..5132f0a64e 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/CustomFieldTemplateMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/CustomFieldTemplateMapper.xml @@ -10,6 +10,7 @@ + @@ -70,7 +71,8 @@ - id, field_id, template_id, scene, required, `order`, default_value, custom_data + id, field_id, template_id, scene, required, `order`, default_value, custom_data, + is_third_part @@ -198,6 +208,9 @@ custom_data = #{record.customData,jdbcType=VARCHAR}, + + is_third_part = #{record.isThirdPart,jdbcType=BIT}, + @@ -212,7 +225,8 @@ required = #{record.required,jdbcType=BIT}, `order` = #{record.order,jdbcType=INTEGER}, default_value = #{record.defaultValue,jdbcType=VARCHAR}, - custom_data = #{record.customData,jdbcType=VARCHAR} + custom_data = #{record.customData,jdbcType=VARCHAR}, + is_third_part = #{record.isThirdPart,jdbcType=BIT} @@ -241,6 +255,9 @@ custom_data = #{customData,jdbcType=VARCHAR}, + + is_third_part = #{isThirdPart,jdbcType=BIT}, + where id = #{id,jdbcType=VARCHAR} @@ -252,7 +269,8 @@ required = #{required,jdbcType=BIT}, `order` = #{order,jdbcType=INTEGER}, default_value = #{defaultValue,jdbcType=VARCHAR}, - custom_data = #{customData,jdbcType=VARCHAR} + custom_data = #{customData,jdbcType=VARCHAR}, + is_third_part = #{isThirdPart,jdbcType=BIT} where id = #{id,jdbcType=VARCHAR} \ No newline at end of file diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.xml index e9400677ab..69581a8643 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtCustomFieldTemplateMapper.xml @@ -10,7 +10,7 @@