<?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.ruoyi.oa.mapper.OaClueMapper">

    <resultMap type="com.ruoyi.oa.domain.OaClue" id="OaClueResult">
        <result property="clueId" column="clue_id"/>
        <result property="clueName" column="clue_name"/>
        <result property="followUpStatus" column="follow_up_status"/>
        <result property="contactLastTime" column="contact_last_time"/>
        <result property="contactLastContent" column="contact_last_content"/>
        <result property="contactNextTime" column="contact_next_time"/>
        <result property="ownerUserId" column="owner_user_id"/>
        <result property="transformStatus" column="transform_status"/>
        <result property="customerId" column="customer_id"/>
        <result property="mobile" column="mobile"/>
        <result property="telephone" column="telephone"/>
        <result property="qq" column="qq"/>
        <result property="wechat" column="wechat"/>
        <result property="email" column="email"/>
        <result property="areaId" column="area_id"/>
        <result property="detailAddress" column="detail_address"/>
        <result property="industryId" column="industry_id"/>
        <result property="level" column="level"/>
        <result property="source" column="source"/>
        <result property="remark" column="remark"/>
        <result property="createBy" column="create_by"/>
        <result property="createTime" column="create_time"/>
        <result property="updateBy" column="update_by"/>
        <result property="updateTime" column="update_time"/>
        <result property="delFlag" column="del_flag"/>
    </resultMap>


    <select id="selectVoListPage" resultType="com.ruoyi.oa.domain.vo.OaClueVo">
        select  oc.clue_id,oc.clue_id, oc.clue_name, oc.follow_up_status, oc.contact_last_time, oc.contact_last_content, oc.contact_next_time, oc.owner_user_id, oc.transform_status, oc.customer_id, oc.mobile, oc.telephone, oc.qq, oc.wechat, oc.email, oc.area_id, oc.detail_address, oc.industry_id, oc.level, oc.source, oc.remark, oc.create_by, oc.create_time, oc.update_by, oc.update_time, oc.del_flag
        ,nick_name
        from oa_clue oc
        left join sys_user su on su.user_id = oc.owner_user_id
            ${ew.getCustomSqlSegment}
    </select>


</mapper>
