|
@@ -50,6 +50,69 @@
|
|
|
</if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
+ <update id="updateUser" parameterType="com.ym.mec.auth.api.entity.SysUser">
|
|
|
+ UPDATE sys_user
|
|
|
+ <set>
|
|
|
+ <if test="delFlag != null">
|
|
|
+ del_flag_ = #{delFlag, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ </if>
|
|
|
+ <if test="wxOpenid != null">
|
|
|
+ wx_openid_ = #{wxOpenid},
|
|
|
+ </if>
|
|
|
+ <if test="avatar != null">
|
|
|
+ avatar_ = #{avatar},
|
|
|
+ </if>
|
|
|
+ <if test="email != null">
|
|
|
+ email_ = #{email},
|
|
|
+ </if>
|
|
|
+ <if test="gender != null">
|
|
|
+ gender_ = #{gender},
|
|
|
+ </if>
|
|
|
+ <if test="salt != null">
|
|
|
+ salt_ = #{salt},
|
|
|
+ </if>
|
|
|
+ <if test="username != null">
|
|
|
+ username_ = #{username},
|
|
|
+ </if>
|
|
|
+ <if test="userType != null">
|
|
|
+ user_type_ = #{userType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time_ = #{updateTime},
|
|
|
+ </if>
|
|
|
+ <if test="lockFlag != null">
|
|
|
+ lock_flag_ = #{lockFlag, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ </if>
|
|
|
+ <if test="birthdate != null">
|
|
|
+ birthdate_ = #{birthdate},
|
|
|
+ </if>
|
|
|
+ <if test="phone != null">
|
|
|
+ phone_ = #{phone},
|
|
|
+ </if>
|
|
|
+ <if test="qqOpenid != null">
|
|
|
+ qq_openid_ = #{qqOpenid},
|
|
|
+ </if>
|
|
|
+ <if test="nation != null">
|
|
|
+ nation_ = #{nation},
|
|
|
+ </if>
|
|
|
+ <if test="organId != null">
|
|
|
+ organ_id_ = #{organId},
|
|
|
+ </if>
|
|
|
+ <if test="imToken != null">
|
|
|
+ im_token_ = #{imToken},
|
|
|
+ </if>
|
|
|
+ <if test="idCardNo != null">
|
|
|
+ id_card_no_ = #{idCardNo},
|
|
|
+ </if>
|
|
|
+ <if test="wechatId != null">
|
|
|
+ wechat_id_ = #{wechatId},
|
|
|
+ </if>
|
|
|
+ <if test="realName != null">
|
|
|
+ real_name = #{realName},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ WHERE id_ = #{id}
|
|
|
+ </update>
|
|
|
|
|
|
<select id="findStudentsByOrganId" resultMap="studentManageListDto">
|
|
|
SELECT sr.user_id_,su.real_name_,su.gender_,sr.parents_name_,sr.parents_phone_
|