From b0153eb550c2f87eed778675c5317911d23a4577 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 25 Jun 2021 17:24:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0Jira=E4=BF=A1=E6=81=AF=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/base/domain/User.java | 5 +- .../metersphere/base/mapper/UserMapper.java | 6 ++ .../io/metersphere/base/mapper/UserMapper.xml | 83 +++++++++++++++++- .../controller/UserController.java | 9 +- .../controller/request/BaseQueryRequest.java | 2 + .../main/java/io/metersphere/dto/UserDTO.java | 8 ++ .../io/metersphere/service/UserService.java | 26 ++++++ .../track/issue/AbstractIssuePlatform.java | 10 ++- .../metersphere/track/issue/JiraPlatform.java | 57 +++++++----- .../request/testcase/IssuesUpdateRequest.java | 2 + .../db/migration/V89__v1.10.4_release.sql | 3 + frontend/src/assets/tapd-user.png | Bin 0 -> 25838 bytes .../settings/personal/JiraUserInfo.vue | 29 ++++++ .../settings/personal/PersonSetting.vue | 56 ++++++++++-- .../settings/personal/TapdUserInfo.vue | 29 ++++++ .../track/issue/IssueEditDetail.vue | 3 +- frontend/src/network/organization.js | 11 +++ 17 files changed, 296 insertions(+), 43 deletions(-) create mode 100644 frontend/src/assets/tapd-user.png create mode 100644 frontend/src/business/components/settings/personal/JiraUserInfo.vue create mode 100644 frontend/src/business/components/settings/personal/TapdUserInfo.vue create mode 100644 frontend/src/network/organization.js diff --git a/backend/src/main/java/io/metersphere/base/domain/User.java b/backend/src/main/java/io/metersphere/base/domain/User.java index 445efcd027..5f737458c9 100644 --- a/backend/src/main/java/io/metersphere/base/domain/User.java +++ b/backend/src/main/java/io/metersphere/base/domain/User.java @@ -1,8 +1,7 @@ package io.metersphere.base.domain; -import lombok.Data; - import java.io.Serializable; +import lombok.Data; @Data public class User implements Serializable { @@ -34,5 +33,7 @@ public class User implements Serializable { private String createUser; + private String platformInfo; + private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/backend/src/main/java/io/metersphere/base/mapper/UserMapper.java b/backend/src/main/java/io/metersphere/base/mapper/UserMapper.java index 286dd2ab87..61e121cd60 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/UserMapper.java +++ b/backend/src/main/java/io/metersphere/base/mapper/UserMapper.java @@ -16,15 +16,21 @@ public interface UserMapper { int insertSelective(User record); + List selectByExampleWithBLOBs(UserExample example); + List selectByExample(UserExample example); User selectByPrimaryKey(String id); int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example); + int updateByExampleWithBLOBs(@Param("record") User record, @Param("example") UserExample example); + int updateByExample(@Param("record") User record, @Param("example") UserExample example); int updateByPrimaryKeySelective(User record); + int updateByPrimaryKeyWithBLOBs(User record); + int updateByPrimaryKey(User record); } \ No newline at end of file diff --git a/backend/src/main/java/io/metersphere/base/mapper/UserMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/UserMapper.xml index 846e717acb..448ca4dd36 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/UserMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/UserMapper.xml @@ -17,6 +17,9 @@ + + + @@ -79,6 +82,25 @@ id, `name`, email, `password`, `status`, create_time, update_time, `language`, last_workspace_id, last_organization_id, phone, `source`, last_project_id, create_user + + platform_info + + - select + , + from user where id = #{id,jdbcType=VARCHAR} @@ -114,12 +138,14 @@ `password`, `status`, create_time, update_time, `language`, last_workspace_id, last_organization_id, phone, `source`, - last_project_id, create_user) + last_project_id, create_user, platform_info + ) values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT}, #{language,jdbcType=VARCHAR}, #{lastWorkspaceId,jdbcType=VARCHAR}, #{lastOrganizationId,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{source,jdbcType=VARCHAR}, - #{lastProjectId,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}) + #{lastProjectId,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{platformInfo,jdbcType=LONGVARCHAR} + ) insert into user @@ -166,6 +192,9 @@ create_user, + + platform_info, + @@ -210,6 +239,9 @@ #{createUser,jdbcType=VARCHAR}, + + #{platformInfo,jdbcType=LONGVARCHAR}, +