|
@@ -109,19 +109,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</insert>
|
|
|
<insert id="updateStudent" parameterType="com.miaxis.common.core.domain.entity.UserInfo" >
|
|
|
update user_info set
|
|
|
- <if test="headImage != null and headImage != ''">
|
|
|
head_image = #{headImage},
|
|
|
- </if>
|
|
|
- <if test="nickName != null and nickName != ''">
|
|
|
nick_name = #{nickName},
|
|
|
- </if>
|
|
|
- <if test="openid != null and openid != ''">
|
|
|
- openid = #{openid},
|
|
|
- </if>
|
|
|
- <if test="xcxOpenid != null and xcxOpenid != ''">
|
|
|
- xcx_openid = #{xcxOpenid},
|
|
|
- </if>
|
|
|
- union_id = #{unionId}
|
|
|
+ openid = #{openid}
|
|
|
+ where union_id = #{unionId}
|
|
|
+ </insert>
|
|
|
+ <insert id="updateXcxOpenid" parameterType="com.miaxis.common.core.domain.entity.UserInfo" >
|
|
|
+ update user_info set
|
|
|
+ xcx_openid = #{xcxOpenid}
|
|
|
where union_id = #{unionId}
|
|
|
</insert>
|
|
|
|