|
@@ -90,7 +90,7 @@
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
- user_id, user_type, blog_openid, mina_openid, mobile_phone, blog_nick_name, sex_flag,
|
|
|
+ user_id, user_type, blog_openid, mina_openid, mobile_phone, blog_nick_name, sex_flag,
|
|
|
registe_date, blog_token, mina_token, blog_profile_photo, update_date
|
|
|
</sql>
|
|
|
|
|
@@ -101,12 +101,14 @@
|
|
|
FROM
|
|
|
app_user_info
|
|
|
<where>
|
|
|
- user_type = #{userType}
|
|
|
+ <if test="userType !=null and userType !=''">
|
|
|
+ user_type = #{userType}
|
|
|
+ </if>
|
|
|
<if test="userType !=null and userType ==1 ">
|
|
|
- AND blog_token = #{token}
|
|
|
+ AND blog_openid = #{openId}
|
|
|
</if>
|
|
|
<if test="userType !=null and userType ==2 ">
|
|
|
- AND mina_token = #{token}
|
|
|
+ AND mina_openid = #{openId}
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
@@ -135,7 +137,7 @@
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
- select
|
|
|
+ select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from app_user_info
|
|
|
where user_id = #{userId,jdbcType=INTEGER}
|
|
@@ -163,14 +165,14 @@
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
- insert into app_user_info (user_id, user_type, blog_openid,
|
|
|
- mina_openid, mobile_phone, blog_nick_name,
|
|
|
- sex_flag, registe_date, blog_token,
|
|
|
+ insert into app_user_info (user_id, user_type, blog_openid,
|
|
|
+ mina_openid, mobile_phone, blog_nick_name,
|
|
|
+ sex_flag, registe_date, blog_token,
|
|
|
mina_token, blog_profile_photo, update_date
|
|
|
)
|
|
|
- values (#{userId,jdbcType=INTEGER}, #{userType,jdbcType=VARCHAR}, #{blogOpenid,jdbcType=VARCHAR},
|
|
|
- #{minaOpenid,jdbcType=VARCHAR}, #{mobilePhone,jdbcType=VARCHAR}, #{blogNickName,jdbcType=VARCHAR},
|
|
|
- #{sexFlag,jdbcType=VARCHAR}, #{registeDate,jdbcType=TIMESTAMP}, #{blogToken,jdbcType=VARCHAR},
|
|
|
+ values (#{userId,jdbcType=INTEGER}, #{userType,jdbcType=VARCHAR}, #{blogOpenid,jdbcType=VARCHAR},
|
|
|
+ #{minaOpenid,jdbcType=VARCHAR}, #{mobilePhone,jdbcType=VARCHAR}, #{blogNickName,jdbcType=VARCHAR},
|
|
|
+ #{sexFlag,jdbcType=VARCHAR}, #{registeDate,jdbcType=TIMESTAMP}, #{blogToken,jdbcType=VARCHAR},
|
|
|
#{minaToken,jdbcType=VARCHAR}, #{blogProfilePhoto,jdbcType=VARCHAR}, #{updateDate,jdbcType=TIMESTAMP}
|
|
|
)
|
|
|
</insert>
|
|
@@ -399,4 +401,4 @@
|
|
|
update_date = #{updateDate,jdbcType=TIMESTAMP}
|
|
|
where user_id = #{userId,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
-</mapper>
|
|
|
+</mapper>
|