|
|
|
@@ -20,4 +20,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
#{avatar} |
|
|
|
) |
|
|
|
</insert > |
|
|
|
|
|
|
|
<update id="updateOne" parameterType="DmVisitorsPo"> |
|
|
|
update dm_visitors |
|
|
|
<set> |
|
|
|
<if test="name != null ">name = #{name},</if> |
|
|
|
<if test="nickName != null ">nick_name = #{nickName},</if> |
|
|
|
<if test="phone != null ">phone = #{phone},</if> |
|
|
|
<if test="visitorCompany != null ">visitor_company = #{visitorCompany},</if> |
|
|
|
<if test="flexVisit != null ">flex_visit = #{flexVisit},</if> |
|
|
|
<if test="isBlock != null ">is_block = #{isBlock},</if> |
|
|
|
<if test="isVip != null ">is_vip = #{isVip},</if> |
|
|
|
<if test="avatar != null ">avatar = #{avatar},</if> |
|
|
|
<if test="resourceId != null ">resource_id = #{resourceId},</if> |
|
|
|
</set> |
|
|
|
where id = #{id} |
|
|
|
</update > |
|
|
|
</mapper> |