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 1f57892f2c..f15c0f9281 100644 --- a/backend/src/main/java/io/metersphere/base/domain/User.java +++ b/backend/src/main/java/io/metersphere/base/domain/User.java @@ -19,6 +19,8 @@ public class User implements Serializable { private String lastSourceId; + private String language; + private static final long serialVersionUID = 1L; public String getId() { @@ -84,4 +86,12 @@ public class User implements Serializable { public void setLastSourceId(String lastSourceId) { this.lastSourceId = lastSourceId == null ? null : lastSourceId.trim(); } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language == null ? null : language.trim(); + } } \ No newline at end of file diff --git a/backend/src/main/java/io/metersphere/base/domain/UserExample.java b/backend/src/main/java/io/metersphere/base/domain/UserExample.java index 7fd72a8f11..59fd2bb8f4 100644 --- a/backend/src/main/java/io/metersphere/base/domain/UserExample.java +++ b/backend/src/main/java/io/metersphere/base/domain/UserExample.java @@ -643,6 +643,76 @@ public class UserExample { addCriterion("last_source_id not between", value1, value2, "lastSourceId"); return (Criteria) this; } + + public Criteria andLanguageIsNull() { + addCriterion("language is null"); + return (Criteria) this; + } + + public Criteria andLanguageIsNotNull() { + addCriterion("language is not null"); + return (Criteria) this; + } + + public Criteria andLanguageEqualTo(String value) { + addCriterion("language =", value, "language"); + return (Criteria) this; + } + + public Criteria andLanguageNotEqualTo(String value) { + addCriterion("language <>", value, "language"); + return (Criteria) this; + } + + public Criteria andLanguageGreaterThan(String value) { + addCriterion("language >", value, "language"); + return (Criteria) this; + } + + public Criteria andLanguageGreaterThanOrEqualTo(String value) { + addCriterion("language >=", value, "language"); + return (Criteria) this; + } + + public Criteria andLanguageLessThan(String value) { + addCriterion("language <", value, "language"); + return (Criteria) this; + } + + public Criteria andLanguageLessThanOrEqualTo(String value) { + addCriterion("language <=", value, "language"); + return (Criteria) this; + } + + public Criteria andLanguageLike(String value) { + addCriterion("language like", value, "language"); + return (Criteria) this; + } + + public Criteria andLanguageNotLike(String value) { + addCriterion("language not like", value, "language"); + return (Criteria) this; + } + + public Criteria andLanguageIn(List values) { + addCriterion("language in", values, "language"); + return (Criteria) this; + } + + public Criteria andLanguageNotIn(List values) { + addCriterion("language not in", values, "language"); + return (Criteria) this; + } + + public Criteria andLanguageBetween(String value1, String value2) { + addCriterion("language between", value1, value2, "language"); + return (Criteria) this; + } + + public Criteria andLanguageNotBetween(String value1, String value2) { + addCriterion("language not between", value1, value2, "language"); + return (Criteria) this; + } } public static class Criteria extends GeneratedCriteria { 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 2cd87f27e1..1606447419 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/UserMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/UserMapper.xml @@ -10,6 +10,7 @@ + @@ -70,7 +71,7 @@ - id, name, email, phone, status, create_time, update_time, last_source_id + id, name, email, phone, status, create_time, update_time, last_source_id, language @@ -198,6 +207,9 @@ last_source_id = #{record.lastSourceId,jdbcType=VARCHAR}, + + language = #{record.language,jdbcType=VARCHAR}, + @@ -212,7 +224,8 @@ status = #{record.status,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=BIGINT}, update_time = #{record.updateTime,jdbcType=BIGINT}, - last_source_id = #{record.lastSourceId,jdbcType=VARCHAR} + last_source_id = #{record.lastSourceId,jdbcType=VARCHAR}, + language = #{record.language,jdbcType=VARCHAR} @@ -241,6 +254,9 @@ last_source_id = #{lastSourceId,jdbcType=VARCHAR}, + + language = #{language,jdbcType=VARCHAR}, + where id = #{id,jdbcType=VARCHAR} @@ -252,7 +268,8 @@ status = #{status,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=BIGINT}, update_time = #{updateTime,jdbcType=BIGINT}, - last_source_id = #{lastSourceId,jdbcType=VARCHAR} + last_source_id = #{lastSourceId,jdbcType=VARCHAR}, + language = #{language,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR} \ No newline at end of file