|
@@ -26,6 +26,9 @@
|
|
|
<result column="birthdate_" property="birthdate"/>
|
|
|
<result column="email_" property="email"/>
|
|
|
<result column="im_token_" property="imToken"/>
|
|
|
+ <result column="id_card_no_" property="idCardNo"/>
|
|
|
+ <result column="esign_id_" property="esignId"/>
|
|
|
+ <result column="wechat_id_" property="wechatId"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 查询条件 -->
|
|
@@ -63,9 +66,9 @@
|
|
|
</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_)
|
|
|
+ (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_,esign_id_,wechat_id_)
|
|
|
VALUES(#{imToken},#{id},#{username},#{salt},#{phone},#{avatar},#{organId},now(),now(),#{wxOpenid},#{qqOpenid},#{userType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
- #{gender},#{nation},#{birthdate},#{email})
|
|
|
+ #{gender},#{nation},#{birthdate},#{email},#{idCardNo},#{esignId},#{wechatId})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -120,6 +123,15 @@
|
|
|
<if test="imToken != null">
|
|
|
im_token_ = #{imToken},
|
|
|
</if>
|
|
|
+ <if test="idCardNo != null">
|
|
|
+ id_card_no_ = #{idCardNo},
|
|
|
+ </if>
|
|
|
+ <if test="esignId != null">
|
|
|
+ esign_id_ = #{esignId},
|
|
|
+ </if>
|
|
|
+ <if test="wechatId != null">
|
|
|
+ wechat_id_ = #{wechatId},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
WHERE id_ = #{id}
|
|
|
</update>
|