From 4e3b2166d0695340b5e84c612d6d7cfcf04d282d Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 21 May 2021 12:55:17 +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 + .../track/issue/AbstractIssuePlatform.java | 1 + .../metersphere/track/issue/JiraPlatform.java | 120 ++++++++++++------ .../track/issue/client/BaseClient.java | 68 ++++++++++ .../track/issue/client/JiraClient.java | 70 ++++++++++ .../issue/domain/JiraAddIssueResponse.java | 12 ++ .../track/issue/domain/JiraConfig.java | 14 ++ .../track/issue/domain/JiraField.java | 28 ++++ .../track/issue/domain/JiraIssue.java | 15 +++ .../issue/domain/JiraIssueDescription.java | 52 ++++++++ .../src/main/resources/generatorConfig.xml | 1 + .../common/components/MsSingleHandleDrag.vue | 48 +++++-- .../workspace/template/CustomFieldEdit.vue | 5 +- .../template/CustomFieldFormList.vue | 12 ++ .../template/CustomFieldRelateList.vue | 11 +- .../workspace/template/FieldTemplateEdit.vue | 1 + .../components/track/issue/IssueList.vue | 2 +- frontend/src/common/css/main.css | 9 +- frontend/src/common/js/custom_field.js | 4 +- frontend/src/i18n/en-US.js | 6 +- frontend/src/i18n/zh-CN.js | 6 +- frontend/src/i18n/zh-TW.js | 6 +- 28 files changed, 518 insertions(+), 70 deletions(-) create mode 100644 backend/src/main/java/io/metersphere/track/issue/client/BaseClient.java create mode 100644 backend/src/main/java/io/metersphere/track/issue/client/JiraClient.java create mode 100644 backend/src/main/java/io/metersphere/track/issue/domain/JiraAddIssueResponse.java create mode 100644 backend/src/main/java/io/metersphere/track/issue/domain/JiraConfig.java create mode 100644 backend/src/main/java/io/metersphere/track/issue/domain/JiraField.java create mode 100644 backend/src/main/java/io/metersphere/track/issue/domain/JiraIssue.java create mode 100644 backend/src/main/java/io/metersphere/track/issue/domain/JiraIssueDescription.java 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 @@