<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: lpc 9874  
    $Date: 2017/11/24 13:52:40  
    $Revision: 1.0  
    $purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="hls_bp_master_agent_sl_temp">
    <bm:fields>
        <bm:field name="hls_bp_master_agent_sale_id" databaseType="NUMBER" datatype="java.lang.Long"/>
        <bm:field name="batch_id" databaseType="NUMBER" datatype="java.lang.Long"/>
        <bm:field name="statement_date" databaseType="VARCHAR2" datatype="java.lang.String"/>
        <bm:field name="wholesale_task" databaseType="NUMBER" datatype="java.lang.Long"/>
        <bm:field name="wholesale_real_sales" databaseType="NUMBER" datatype="java.lang.Long"/>
        <bm:field name="wholesale_amount" databaseType="NUMBER" datatype="java.lang.Long"/>
        <bm:field name="retail_task" databaseType="NUMBER" datatype="java.lang.Long"/>
        <bm:field name="retail_real_sales" databaseType="NUMBER" datatype="java.lang.Long"/>
        <bm:field name="retail_amount" databaseType="NUMBER" datatype="java.lang.Long"/>
        <bm:field name="repair_sum" databaseType="NUMBER" datatype="java.lang.Long"/>
        <bm:field name="repair_amount" databaseType="NUMBER" datatype="java.lang.Long"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="hls_bp_master_agent_sale_id"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field name="batch_id" queryExpression="t1.batch_id=${@batch_id}"/>
    </bm:query-fields>
</bm:model>
