<?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="org.hzhub.crm.mapper.CrmOpportunityMapper">

    <resultMap type="org.hzhub.crm.domain.CrmOpportunity" id="CrmOpportunityResult">
        <id     property="opportunityId"      column="opportunity_id"       />
        <result property="tenantId"           column="tenant_id"            />
        <result property="dealerId"           column="dealer_id"            />
        <result property="opportunityName"    column="opportunity_name"     />
        <result property="stage"              column="stage"                />
        <result property="amount"             column="amount"               />
        <result property="probability"        column="probability"          />
        <result property="expectedCloseDate"  column="expected_close_date"  />
        <result property="actualCloseDate"    column="actual_close_date"    />
        <result property="ownerUserId"        column="owner_user_id"        />
        <result property="productName"        column="product_name"         />
        <result property="description"        column="description"          />
        <result property="sourceLeadId"       column="source_lead_id"       />
        <result property="status"             column="status"               />
        <result property="createDept"         column="create_dept"          />
        <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>

</mapper>