|
@@ -9,6 +9,7 @@
|
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
|
<result column="phone" jdbcType="VARCHAR" property="phone" />
|
|
|
<result column="area_code" jdbcType="VARCHAR" property="areaCode" />
|
|
|
+ <result column="country_id" jdbcType="BIGINT" property="countryId" />
|
|
|
<result column="course_type" jdbcType="INTEGER" property="courseType" />
|
|
|
<result column="min_age" jdbcType="INTEGER" property="minAge" />
|
|
|
<result column="max_age" jdbcType="INTEGER" property="maxAge" />
|
|
@@ -22,7 +23,7 @@
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
<!--@mbg.generated-->
|
|
|
- id, surname, `name`, phone, area_code, course_type, min_age,max_age, email, project, create_time,
|
|
|
+ id, surname, `name`, phone, area_code, country_id,course_type, min_age,max_age, email, project, create_time,
|
|
|
create_user_id, update_time, update_user_id, delete_flag
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
@@ -40,11 +41,11 @@
|
|
|
<insert id="insert" parameterType="edu.travel.education.entity.HappyEntry">
|
|
|
<!--@mbg.generated-->
|
|
|
insert into happy_entry (id, surname, `name`,
|
|
|
- phone, area_code, course_type,
|
|
|
+ phone, area_code, course_type, country_id,
|
|
|
min_age,max_age, email, project,
|
|
|
create_time, create_user_id, update_time,
|
|
|
update_user_id, delete_flag)
|
|
|
- values (#{id,jdbcType=BIGINT}, #{surname,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
|
|
+ values (#{id,jdbcType=BIGINT}, #{surname,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{countryId,jdbcType=BIGINT},
|
|
|
#{phone,jdbcType=VARCHAR}, #{areaCode,jdbcType=VARCHAR}, #{courseType,jdbcType=INTEGER},
|
|
|
#{minAge,jdbcType=INTEGER},#{maxAge,jdbcType=INTEGER}, #{email,jdbcType=VARCHAR}, #{project,jdbcType=VARCHAR},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP},
|
|
@@ -81,6 +82,9 @@
|
|
|
<if test="email != null">
|
|
|
email,
|
|
|
</if>
|
|
|
+ <if test="countryId != null">
|
|
|
+ country_id,
|
|
|
+ </if>
|
|
|
<if test="project != null">
|
|
|
project,
|
|
|
</if>
|
|
@@ -104,6 +108,9 @@
|
|
|
<if test="id != null">
|
|
|
#{id,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="countryId != null">
|
|
|
+ #{country_id,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
<if test="surname != null">
|
|
|
#{surname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -155,6 +162,9 @@
|
|
|
<if test="surname != null">
|
|
|
surname = #{surname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="countryId != null">
|
|
|
+ country_id = #{countryId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="name != null">
|
|
|
`name` = #{name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -202,6 +212,7 @@
|
|
|
update happy_entry
|
|
|
set surname = #{surname,jdbcType=VARCHAR},
|
|
|
`name` = #{name,jdbcType=VARCHAR},
|
|
|
+ `country_id` = #{countryId,jdbcType=BIGINT},
|
|
|
phone = #{phone,jdbcType=VARCHAR},
|
|
|
area_code = #{areaCode,jdbcType=VARCHAR},
|
|
|
course_type = #{courseType,jdbcType=INTEGER},
|