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}, +