<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bs.df.mapper.DfBizClueMapper">

    <insert id="insertClue" parameterType="com.bs.df.domain.DfBizClue">
        INSERT INTO df_biz_clue(data_type,clue_type,user_id,nick_name,browse_time,avatar_link,phone,create_dept,create_by,create_time,tenant_id,
                                business_links,union_id,open_id,share_user,from_type,order_id)
        VALUES(#{dfBizClue.dataType},#{dfBizClue.clueType},#{dfBizClue.userId},#{dfBizClue.nickName},#{dfBizClue.browseTime},#{dfBizClue.avatarLink},
               #{dfBizClue.phone},#{dfBizClue.createDept},#{dfBizClue.createBy},#{dfBizClue.createTimeVo},#{dfBizClue.tenantId},#{dfBizClue.businessLinks}
               ,#{dfBizClue.unionId},#{dfBizClue.openId},#{dfBizClue.shareUser},#{dfBizClue.fromType},#{dfBizClue.orderId})
    </insert>

    <update id="updateClue" parameterType="com.bs.df.domain.DfBizClue">
        UPDATE df_biz_clue
        SET
            order_id = #{dfBizClue.orderId},
            phone = #{dfBizClue.phone},
            nick_name = #{dfBizClue.nickName}
        WHERE id = #{dfBizClue.id}
    </update>



</mapper>
