|
|
@@ -16,7 +16,6 @@
|
|
|
<result column="qq" property="qq" jdbcType="VARCHAR" />
|
|
|
<result column="postal_address" property="postalAddress" jdbcType="VARCHAR" />
|
|
|
<result column="postcode" property="postcode" jdbcType="VARCHAR" />
|
|
|
- <result column="work_unit" property="workUnit" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap id="UserInfoBoMap" type="com.goafanti.user.bo.UserInfoBo" >
|
|
|
@@ -34,14 +33,13 @@
|
|
|
<result column="qq" property="qq" jdbcType="VARCHAR" />
|
|
|
<result column="postal_address" property="postalAddress" jdbcType="VARCHAR" />
|
|
|
<result column="postcode" property="postcode" jdbcType="VARCHAR" />
|
|
|
- <result column="work_unit" property="workUnit" jdbcType="VARCHAR" />
|
|
|
<result column="email" property="email" jdbcType="VARCHAR" />
|
|
|
<result column="nickname" property="nickname" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, uid, residence_province, residence_city, residence_area, person_portrait_url, life_photo_url, personal_profile, fixed_tel, qq,
|
|
|
- postal_address, postcode, work_unit
|
|
|
+ postal_address, postcode
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
@@ -57,13 +55,13 @@
|
|
|
insert into user_info (id, uid, residence_province, residence_city, residence_area,
|
|
|
person_portrait_url, life_photo_url, personal_profile,
|
|
|
fixed_tel_area,fixed_tel,fixed_tel_extension, qq, postal_address,
|
|
|
- postcode,work_unit)
|
|
|
+ postcode)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{residenceProvince,jdbcType=VARCHAR},
|
|
|
#{residenceCity,jdbcType=VARCHAR}, #{residenceArea,jdbcType=VARCHAR},
|
|
|
#{personPortraitUrl,jdbcType=VARCHAR}, #{lifePhotoUrl,jdbcType=VARCHAR}, #{personalProfile,jdbcType=VARCHAR},
|
|
|
#{fixedTelArea,jdbcType=VARCHAR}, #{fixedTel,jdbcType=VARCHAR},#{fixedTelExtension,jdbcType=VARCHAR},
|
|
|
#{qq,jdbcType=VARCHAR}, #{postalAddress,jdbcType=VARCHAR},
|
|
|
- #{postcode,jdbcType=VARCHAR}, #{workUnit,jdbcType=VARCHAR})
|
|
|
+ #{postcode,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.UserInfo" >
|
|
|
insert into user_info
|
|
|
@@ -110,9 +108,6 @@
|
|
|
<if test="postcode != null" >
|
|
|
postcode,
|
|
|
</if>
|
|
|
- <if test="workUnit != null" >
|
|
|
- work_Unit,
|
|
|
- </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
@@ -157,9 +152,6 @@
|
|
|
<if test="postcode != null" >
|
|
|
#{postcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="workUnit != null" >
|
|
|
- #{workunit,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.UserInfo" >
|
|
|
@@ -204,9 +196,6 @@
|
|
|
<if test="postcode != null" >
|
|
|
postcode = #{postcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="workUnit != null" >
|
|
|
- work_unit = #{workUnit,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -225,7 +214,6 @@
|
|
|
qq = #{qq,jdbcType=VARCHAR},
|
|
|
postal_address = #{postalAddress,jdbcType=VARCHAR},
|
|
|
postcode = #{postcode,jdbcType=VARCHAR}
|
|
|
- work_unit = #{workUnit,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
@@ -240,7 +228,7 @@
|
|
|
<select id="selectUserInfoBoByUserId" parameterType="java.lang.String" resultMap="UserInfoBoMap">
|
|
|
select t.id,t.uid,t.residence_province,t.residence_city,t.residence_area,
|
|
|
t.person_portrait_url,t.life_photo_url,t.personal_profile,t.fixed_tel_area,t.fixed_tel,t.fixed_tel_extension,
|
|
|
- t.qq,t.postal_address,t.postcode,t.work_unit,
|
|
|
+ t.qq,t.postal_address,t.postcode,
|
|
|
u.email,u.nickname from user u
|
|
|
left JOIN user_Info t
|
|
|
on t.uid = u.id where t.uid = #{uid,jdbcType=VARCHAR}
|