From dd3860c138bbdd5a2c780cc3c16cb4ea21cfb2c3 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 21 May 2021 14:21:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/domain/CustomFieldTemplate.java | 2 - .../domain/CustomFieldTemplateExample.java | 60 ------------------- .../base/mapper/CustomFieldTemplateMapper.xml | 28 ++------- .../ext/ExtCustomFieldTemplateMapper.xml | 2 +- .../io/metersphere/dto/CustomFieldDao.java | 2 - .../metersphere/dto/CustomFieldItemDTO.java | 1 - .../dto/CustomFieldTemplateDao.java | 2 - .../metersphere/track/issue/JiraPlatform.java | 2 +- .../metersphere/track/issue/TapdPlatform.java | 2 +- .../template/CustomFieldFormList.vue | 11 ---- .../track/issue/IssueEditDetail.vue | 29 +++------ frontend/src/common/js/custom_field.js | 2 - 12 files changed, 15 insertions(+), 128 deletions(-) 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 7fd6d16606..b60ba64199 100644 --- a/backend/src/main/java/io/metersphere/base/domain/CustomFieldTemplate.java +++ b/backend/src/main/java/io/metersphere/base/domain/CustomFieldTemplate.java @@ -21,7 +21,5 @@ 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 4296924ecb..5d9f223f25 100644 --- a/backend/src/main/java/io/metersphere/base/domain/CustomFieldTemplateExample.java +++ b/backend/src/main/java/io/metersphere/base/domain/CustomFieldTemplateExample.java @@ -643,66 +643,6 @@ 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 5132f0a64e..512b39030f 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/CustomFieldTemplateMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/CustomFieldTemplateMapper.xml @@ -10,7 +10,6 @@ - @@ -71,8 +70,7 @@ - id, field_id, template_id, scene, required, `order`, default_value, custom_data, - is_third_part + id, field_id, template_id, scene, required, `order`, default_value, custom_data @@ -208,9 +198,6 @@ custom_data = #{record.customData,jdbcType=VARCHAR}, - - is_third_part = #{record.isThirdPart,jdbcType=BIT}, - @@ -225,8 +212,7 @@ required = #{record.required,jdbcType=BIT}, `order` = #{record.order,jdbcType=INTEGER}, default_value = #{record.defaultValue,jdbcType=VARCHAR}, - custom_data = #{record.customData,jdbcType=VARCHAR}, - is_third_part = #{record.isThirdPart,jdbcType=BIT} + custom_data = #{record.customData,jdbcType=VARCHAR} @@ -255,9 +241,6 @@ custom_data = #{customData,jdbcType=VARCHAR}, - - is_third_part = #{isThirdPart,jdbcType=BIT}, - where id = #{id,jdbcType=VARCHAR} @@ -269,8 +252,7 @@ required = #{required,jdbcType=BIT}, `order` = #{order,jdbcType=INTEGER}, default_value = #{defaultValue,jdbcType=VARCHAR}, - custom_data = #{customData,jdbcType=VARCHAR}, - is_third_part = #{isThirdPart,jdbcType=BIT} + custom_data = #{customData,jdbcType=VARCHAR} 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 69581a8643..e9400677ab 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 @@