提交 807135e7 编写于 作者: C Captain.B

user add column language

上级 814c5730
...@@ -19,6 +19,8 @@ public class User implements Serializable { ...@@ -19,6 +19,8 @@ public class User implements Serializable {
private String lastSourceId; private String lastSourceId;
private String language;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public String getId() { public String getId() {
...@@ -84,4 +86,12 @@ public class User implements Serializable { ...@@ -84,4 +86,12 @@ public class User implements Serializable {
public void setLastSourceId(String lastSourceId) { public void setLastSourceId(String lastSourceId) {
this.lastSourceId = lastSourceId == null ? null : lastSourceId.trim(); 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
...@@ -643,6 +643,76 @@ public class UserExample { ...@@ -643,6 +643,76 @@ public class UserExample {
addCriterion("last_source_id not between", value1, value2, "lastSourceId"); addCriterion("last_source_id not between", value1, value2, "lastSourceId");
return (Criteria) this; 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<String> values) {
addCriterion("language in", values, "language");
return (Criteria) this;
}
public Criteria andLanguageNotIn(List<String> 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 { public static class Criteria extends GeneratedCriteria {
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<result column="create_time" jdbcType="BIGINT" property="createTime" /> <result column="create_time" jdbcType="BIGINT" property="createTime" />
<result column="update_time" jdbcType="BIGINT" property="updateTime" /> <result column="update_time" jdbcType="BIGINT" property="updateTime" />
<result column="last_source_id" jdbcType="VARCHAR" property="lastSourceId" /> <result column="last_source_id" jdbcType="VARCHAR" property="lastSourceId" />
<result column="language" jdbcType="VARCHAR" property="language" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
...@@ -70,7 +71,7 @@ ...@@ -70,7 +71,7 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
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
</sql> </sql>
<select id="selectByExample" parameterType="io.metersphere.base.domain.UserExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="io.metersphere.base.domain.UserExample" resultMap="BaseResultMap">
select select
...@@ -105,10 +106,12 @@ ...@@ -105,10 +106,12 @@
<insert id="insert" parameterType="io.metersphere.base.domain.User"> <insert id="insert" parameterType="io.metersphere.base.domain.User">
insert into user (id, name, email, insert into user (id, name, email,
phone, status, create_time, phone, status, create_time,
update_time, last_source_id) update_time, last_source_id, language
)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{phone,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT},
#{updateTime,jdbcType=BIGINT}, #{lastSourceId,jdbcType=VARCHAR}) #{updateTime,jdbcType=BIGINT}, #{lastSourceId,jdbcType=VARCHAR}, #{language,jdbcType=VARCHAR}
)
</insert> </insert>
<insert id="insertSelective" parameterType="io.metersphere.base.domain.User"> <insert id="insertSelective" parameterType="io.metersphere.base.domain.User">
insert into user insert into user
...@@ -137,6 +140,9 @@ ...@@ -137,6 +140,9 @@
<if test="lastSourceId != null"> <if test="lastSourceId != null">
last_source_id, last_source_id,
</if> </if>
<if test="language != null">
language,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null"> <if test="id != null">
...@@ -163,6 +169,9 @@ ...@@ -163,6 +169,9 @@
<if test="lastSourceId != null"> <if test="lastSourceId != null">
#{lastSourceId,jdbcType=VARCHAR}, #{lastSourceId,jdbcType=VARCHAR},
</if> </if>
<if test="language != null">
#{language,jdbcType=VARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="io.metersphere.base.domain.UserExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="io.metersphere.base.domain.UserExample" resultType="java.lang.Long">
...@@ -198,6 +207,9 @@ ...@@ -198,6 +207,9 @@
<if test="record.lastSourceId != null"> <if test="record.lastSourceId != null">
last_source_id = #{record.lastSourceId,jdbcType=VARCHAR}, last_source_id = #{record.lastSourceId,jdbcType=VARCHAR},
</if> </if>
<if test="record.language != null">
language = #{record.language,jdbcType=VARCHAR},
</if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
...@@ -212,7 +224,8 @@ ...@@ -212,7 +224,8 @@
status = #{record.status,jdbcType=VARCHAR}, status = #{record.status,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=BIGINT}, create_time = #{record.createTime,jdbcType=BIGINT},
update_time = #{record.updateTime,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}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -241,6 +254,9 @@ ...@@ -241,6 +254,9 @@
<if test="lastSourceId != null"> <if test="lastSourceId != null">
last_source_id = #{lastSourceId,jdbcType=VARCHAR}, last_source_id = #{lastSourceId,jdbcType=VARCHAR},
</if> </if>
<if test="language != null">
language = #{language,jdbcType=VARCHAR},
</if>
</set> </set>
where id = #{id,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR}
</update> </update>
...@@ -252,7 +268,8 @@ ...@@ -252,7 +268,8 @@
status = #{status,jdbcType=VARCHAR}, status = #{status,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=BIGINT}, create_time = #{createTime,jdbcType=BIGINT},
update_time = #{updateTime,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} where id = #{id,jdbcType=VARCHAR}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册