|
@@ -28,6 +28,7 @@
|
|
|
<result column="im_token_" property="imToken"/>
|
|
|
<result column="id_card_no_" property="idCardNo"/>
|
|
|
<result column="wechat_id_" property="wechatId"/>
|
|
|
+ <result column="is_super_admin_" property="isSuperAdmin"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 查询条件 -->
|
|
@@ -65,8 +66,8 @@
|
|
|
</selectKey>
|
|
|
-->
|
|
|
INSERT INTO sys_user
|
|
|
- (im_token_,id_,username_,salt_,phone_,avatar_,organ_id_,create_time_,update_time_,wx_openid_,qq_openid_,user_type_,gender_,nation_,birthdate_,email_,id_card_no_,wechat_id_,real_name_)
|
|
|
- VALUES(#{imToken},#{id},#{username},#{salt},#{phone},#{avatar},#{organId},now(),now(),#{wxOpenid},#{qqOpenid},#{userType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ (is_super_admin_,im_token_,id_,username_,salt_,phone_,avatar_,organ_id_,create_time_,update_time_,wx_openid_,qq_openid_,user_type_,gender_,nation_,birthdate_,email_,id_card_no_,wechat_id_,real_name_)
|
|
|
+ VALUES(#{isSuperAdmin},#{imToken},#{id},#{username},#{salt},#{phone},#{avatar},#{organId},now(),now(),#{wxOpenid},#{qqOpenid},#{userType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
#{gender},#{nation},#{birthdate},#{email},#{idCardNo},#{wechatId},#{realName})
|
|
|
</insert>
|
|
|
|
|
@@ -134,6 +135,9 @@
|
|
|
<if test="realName != null">
|
|
|
real_name = #{realName},
|
|
|
</if>
|
|
|
+ <if test="isSuperAdmin != null">
|
|
|
+ is_super_admin_ = #{isSuperAdmin},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
WHERE id_ = #{id}
|
|
|
</update>
|