小程序认证登录
This commit is contained in:
+14
@@ -11,12 +11,14 @@
|
||||
<result property="certificationStatus" column="certification_status" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="userName" column="user_name" />
|
||||
<result property="idAddress" column="id_address" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
<insert id="insertIdentityAuthentication" parameterType="IdentityAuthentication" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into identi_authenti(
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="idAddress != null and idAddress != ''">id_address,</if>
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="identityNo != null and identityNo != ''">identity_no,</if>
|
||||
certification_time,
|
||||
@@ -26,6 +28,7 @@
|
||||
create_time
|
||||
)values(
|
||||
<if test="userId != null ">#{userId},</if>
|
||||
<if test="idAddress != null and idAddress != ''">#{idAddress},</if>
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="identityNo != null and identityNo != ''">#{identityNo},</if>
|
||||
sysdate(),
|
||||
@@ -35,6 +38,17 @@
|
||||
sysdate()
|
||||
)
|
||||
</insert>
|
||||
<update id="updateIdentityAuthentication">
|
||||
update identi_authenti
|
||||
<set>
|
||||
<if test="userId != null ">user_id = #{userId},</if>
|
||||
<if test="userName != null and userName != ''">user_name = #{userName},</if>
|
||||
<if test="identityNo != null and identityNo != ''">identity_no = #{identityNo},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
update_time = sysdate()
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<select id="selectIdentityAuthentication" parameterType="IdentityAuthentication" resultMap="IdentityAuthenticationResult">
|
||||
SELECT i.id ,i.name ,i.identity_no ,i.certification_time ,i.certification_status ,i.user_id ,i.user_name
|
||||
|
||||
Reference in New Issue
Block a user