<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="CON_CONTRACT_LEDGER_LV">
    <bm:fields>
        <bm:field name="contract_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTRACT_ID" prompt="CON_CONTRACT_LEDGER_LV.CONTRACT_ID"/>
        <bm:field name="calc_session_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CALC_SESSION_ID" prompt="CON_CONTRACT_LEDGER_LV.CALC_SESSION_ID"/>
        <bm:field name="project_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PROJECT_ID" prompt="CON_CONTRACT_LEDGER_LV.PROJECT_ID"/>
        <bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTRACT_NUMBER" prompt="CON_CONTRACT_LEDGER_LV.CONTRACT_NUMBER"/>
        <bm:field name="unit_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="UNIT_ID" prompt="CON_CONTRACT_LEDGER_LV.UNIT_ID"/>
        <bm:field name="employee_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="EMPLOYEE_ID" prompt="CON_CONTRACT_LEDGER_LV.EMPLOYEE_ID"/>
        <bm:field name="bp_id_tenant" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID_TENANT" prompt="CON_CONTRACT_LEDGER_LV.BP_ID_TENANT"/>
        <bm:field name="bp_id_agent_level1" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID_AGENT_LEVEL1" prompt="CON_CONTRACT_LEDGER_LV.BP_ID_AGENT_LEVEL1"/>
        <bm:field name="unit_id_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="UNIT_ID_N" prompt="CON_CONTRACT_LEDGER_LV.UNIT_ID_N"/>
        <bm:field name="unit_manager" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="UNIT_MANAGER" prompt="CON_CONTRACT_LEDGER_LV.UNIT_MANAGER"/>
        <bm:field name="employee_id_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EMPLOYEE_ID_N" prompt="CON_CONTRACT_LEDGER_LV.EMPLOYEE_ID_N"/>
        <bm:field name="bp_id_agent" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BP_ID_AGENT" prompt="CON_CONTRACT_LEDGER_LV.BP_ID_AGENT"/>
        <bm:field name="bp_id_agent_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ID_AGENT_N" prompt="CON_CONTRACT_LEDGER_LV.BP_ID_AGENT_N"/>
        <bm:field name="bp_class" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CLASS" prompt="CON_CONTRACT_LEDGER_LV.BP_CLASS"/>
        <bm:field name="bp_class_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CLASS_N" prompt="CON_CONTRACT_LEDGER_LV.BP_CLASS_N"/>
        <bm:field name="bp_id_tenant_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_ID_TENANT_N" prompt="CON_CONTRACT_LEDGER_LV.BP_ID_TENANT_N"/>
        <bm:field name="corporate_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CORPORATE_CODE" prompt="CON_CONTRACT_LEDGER_LV.CORPORATE_CODE"/>
        <!-- <bm:field name="gender_leg" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GENDER_LEG" prompt="CON_CONTRACT_LEDGER_LV.GENDER_LEG"/> -->
        <bm:field name="id_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ID_NUMBER" prompt="CON_CONTRACT_LEDGER_LV.ID_NUMBER"/>
        <bm:field name="phone" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PHONE" prompt="CON_CONTRACT_LEDGER_LV.PHONE"/>
        <bm:field name="marital_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MARITAL_STATUS" prompt="CON_CONTRACT_LEDGER_LV.MARITAL_STATUS"/>
        <bm:field name="marital_status_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MARITAL_STATUS_N" prompt="CON_CONTRACT_LEDGER_LV.MARITAL_STATUS_N"/>
        <bm:field name="bp_name_sp" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_NAME_SP" prompt="CON_CONTRACT_LEDGER_LV.BP_NAME_SP"/>
        <!-- <bm:field name="bank_full_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_FULL_NAME" prompt="CON_CONTRACT_LEDGER_LV.BANK_FULL_NAME"/> -->
        <bm:field name="bank_account_num" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_ACCOUNT_NUM" prompt="CON_CONTRACT_LEDGER_LV.BANK_ACCOUNT_NUM"/>
        <bm:field name="down_payment_ratio" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOWN_PAYMENT_RATIO" prompt="CON_CONTRACT_LEDGER_LV.DOWN_PAYMENT_RATIO"/>
        <bm:field name="down_payment" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOWN_PAYMENT" prompt="CON_CONTRACT_LEDGER_LV.DOWN_PAYMENT"/>
        <bm:field name="lease_times" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LEASE_TIMES" prompt="CON_CONTRACT_LEDGER_LV.LEASE_TIMES"/>
        <bm:field name="finance_amount" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FINANCE_AMOUNT" prompt="CON_CONTRACT_LEDGER_LV.FINANCE_AMOUNT"/>
        <bm:field name="deposit_ratio" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DEPOSIT_RATIO" prompt="CON_CONTRACT_LEDGER_LV.DEPOSIT_RATIO"/>
        <bm:field name="deposit" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DEPOSIT" prompt="CON_CONTRACT_LEDGER_LV.DEPOSIT"/>
        <bm:field name="int_rate_display" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INT_RATE_DISPLAY" prompt="CON_CONTRACT_LEDGER_LV.INT_RATE_DISPLAY"/>
        <bm:field name="lease_charge_ratio" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LEASE_CHARGE_RATIO" prompt="CON_CONTRACT_LEDGER_LV.LEASE_CHARGE_RATIO"/>
        <bm:field name="lease_charge" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LEASE_CHARGE" prompt="CON_CONTRACT_LEDGER_LV.LEASE_CHARGE"/>
        <bm:field name="gps_num" databaseType="NUMBER" datatype="java.lang.Long" physicalName="GPS_NUM" prompt="CON_CONTRACT_LEDGER_LV.GPS_NUM"/>
        <bm:field name="gps_fee" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GPS_FEE" prompt="CON_CONTRACT_LEDGER_LV.GPS_FEE"/>
        <bm:field name="investigation_fee" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INVESTIGATION_FEE" prompt="CON_CONTRACT_LEDGER_LV.INVESTIGATION_FEE"/>
        <bm:field name="third_party_deposit" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="THIRD_PARTY_DEPOSIT" prompt="CON_CONTRACT_LEDGER_LV.THIRD_PARTY_DEPOSIT"/>
        <bm:field name="commission_receivable" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="COMMISSION_RECEIVABLE" prompt="CON_CONTRACT_LEDGER_LV.COMMISSION_RECEIVABLE"/>
        <bm:field name="guarantor_bp_class" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GUARANTOR_BP_CLASS" prompt="CON_CONTRACT_LEDGER_LV.GUARANTOR_BP_CLASS"/>
        <bm:field name="guarantor_bp_class_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GUARANTOR_BP_CLASS_N" prompt="CON_CONTRACT_LEDGER_LV.GUARANTOR_BP_CLASS_N"/>
        <bm:field name="guarantor_bp_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GUARANTOR_BP_NAME" prompt="CON_CONTRACT_LEDGER_LV.GUARANTOR_BP_NAME"/>
        <bm:field name="project_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROJECT_NUMBER" prompt="CON_CONTRACT_LEDGER_LV.PROJECT_NUMBER"/>
        <!-- <bm:field name="lease_start_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="LEASE_START_DATE" prompt="CON_CONTRACT_LEDGER_LV.LEASE_START_DATE"/> -->
        <!-- <bm:field name="seq" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SEQ"/> -->
        <bm:field name="gender" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GENDER"/>
        <bm:field name="bp_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CODE"/>
        <bm:field name="bp_category" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BP_CATEGORY"/>
        <bm:field name="create_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CREATE_DATE"/>
        <bm:field name="gender_n" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GENDER_N"/>
        <bm:field name="bank_branch_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_BRANCH_NAME"/>
        <bm:field name="quantity" databaseType="NUMBER" datatype="java.lang.Long" physicalName="QUANTITY"/>
        <bm:field name="amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="AMOUNT"/>
        <bm:field name="company" databaseType="CHAR" datatype="java.lang.String" physicalName="COMPANY"/>
        <bm:field name="project_status" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PROJECT_STATUS"/>
        <bm:field name="wfl_instance_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="WFL_INSTANCE_ID"/>
        <bm:field name="trial_comment" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TRIAL_COMMENT"/>
        <bm:field name="trial_creation_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TRIAL_CREATION_DATE"/>
        <bm:field name="trial_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TRIAL_FLAG"/>
        <bm:field name="risk_refuse_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="RISK_REFUSE_DATE"/>
        <bm:field name="again_creation_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="AGAIN_CREATION_DATE"/>
        <bm:field name="consum_time" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONSUM_TIME"/>
        <bm:field name="approve_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="APPROVE_DATE"/>
        <bm:field name="payment_submit_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PAYMENT_SUBMIT_DATE"/>
        <bm:field name="payment_approve_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PAYMENT_APPROVE_FLAG"/>
        <bm:field name="payment_approved_date" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PAYMENT_APPROVED_DATE"/>
        <bm:field name="inception_of_lease" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="INCEPTION_OF_LEASE"/>
        <bm:field name="write_off_payment_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="WRITE_OFF_PAYMENT_AMOUNT"/>
        <bm:field name="write_off_deduction_amount" databaseType="NUMBER" datatype="java.lang.Double" physicalName="WRITE_OFF_DEDUCTION_AMOUNT"/>
        <bm:field name="payment_consum" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PAYMENT_CONSUM"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
    <bm:query-fields>
        <bm:query-field field="bp_id_tenant_n" queryExpression="t1.bp_id_tenant_n like ${@bp_id_tenant_n}"/>
        <bm:query-field field="bp_code" queryExpression="t1.bp_code like upper(&apos;%&apos;||${@bp_code}||&apos;%&apos;)"/>
        <bm:query-field field="bp_class" queryExpression="t1.bp_class like ${@bp_class}"/>
        <bm:query-field field="contract_number" queryExpression="t1.contract_number like &apos;%&apos;||${@contract_number}||&apos;%&apos;"/>
        <bm:query-field field="project_number" queryExpression="t1.project_number like &apos;%&apos;||${@project_number}||&apos;%&apos;"/>
        <bm:query-field field="bp_id_agent_n" queryExpression="t1.bp_id_agent_n like ${@bp_id_agent_n}"/>
        <bm:query-field field="unit_manager" queryExpression="t1.unit_manager like ${@unit_manager}"/>
        <bm:query-field field="employee_id_n" queryExpression="t1.employee_id_n like ${@employee_id_n}"/>
        <bm:query-field field="unit_id_n" queryExpression="t1.unit_id_n like ${@unit_id_n}"/>
    </bm:query-fields>
</bm:model>
