|
@@ -34,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<select id="selectJnbNameAuthenticationById" parameterType="String" resultMap="JnbNameAuthenticationResult">
|
|
|
- select a.id, a.name, a.phone, a.id_card, a.status,GROUP_CONCAT(b.path) path,a.create_time
|
|
|
+ select a.id, a.name, a.phone, a.id_card, a.status,GROUP_CONCAT(b.path) path,a.create_time,a.create_by
|
|
|
from jnb_name_authentication a
|
|
|
left join jnb_authentication_img b on a.id = b.authentication_id
|
|
|
where a.id = #{id}
|
|
@@ -102,11 +102,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
delete from jnb_name_authentication where id = #{id}
|
|
|
</delete>
|
|
|
|
|
|
- <delete id="deleteJnbNameAuthenticationByIds" parameterType="String">
|
|
|
+ <update id="deleteJnbNameAuthenticationByIds" parameterType="String">
|
|
|
update jnb_name_authentication set del_flag = 2
|
|
|
where id in
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
- </delete>
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <update id="updateWxUser" parameterType="JnbNameAuthentication">
|
|
|
+ update jnb_wx_user
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="name != null and name != ''">name = #{name},</if>
|
|
|
+ <if test="phone != null and phone != ''">phone = #{phone},</if>
|
|
|
+ <if test="idCard != null and idCard != ''">id_card = #{idCard},</if>
|
|
|
+ </trim>
|
|
|
+ where id = #{createBy}
|
|
|
+ </update>
|
|
|
</mapper>
|