<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:o="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="HLS_PRODUCT_PLAN_DEFINITION" needAccessControl="false">
    <bm:fields>
        <bm:field name="product_plan_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PRODUCT_PLAN_ID" prompt="HLS_PRODUCT_PLAN_DEFINITION.PRODUCT_PLAN_ID"/>
        <bm:field name="price_list" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PRICE_LIST" prompt="HLS_PRODUCT_PLAN_DEFINITION.PRICE_LIST"/>
        <bm:field name="product_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PRODUCT_TYPE" prompt="HLS_PRODUCT_PLAN_DEFINITION.PRODUCT_TYPE"/>
        <bm:field name="product_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PRODUCT_NUMBER" prompt="HLS_PRODUCT_PLAN_DEFINITION.PRODUCT_NUMBER"/>
        <bm:field name="product_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PRODUCT_NAME" prompt="HLS_PRODUCT_PLAN_DEFINITION.PRODUCT_NAME"/>
        <bm:field name="pay_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PAY_TYPE" prompt="HLS_PRODUCT_PLAN_DEFINITION.PAY_TYPE"/>
        <bm:field name="gps_install_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GPS_INSTALL_FLAG" prompt="HLS_PRODUCT_PLAN_DEFINITION.GPS_INSTALL_FLAG"/>
        <bm:field name="discount_method" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DISCOUNT_METHOD" prompt="HLS_PRODUCT_PLAN_DEFINITION.DISCOUNT_METHOD"/>
        <bm:field name="times_from" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TIMES_FROM" prompt="HLS_PRODUCT_PLAN_DEFINITION.TIMES_FROM"/>
        <bm:field name="times_to" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TIMES_TO" prompt="HLS_PRODUCT_PLAN_DEFINITION.TIMES_TO"/>
        <bm:field name="down_payment_ratio_from" databaseType="VARCHAR2" datatype="java.lang.String" expression="decode(down_payment_ratio_from,null,down_payment_ratio_from,down_payment_ratio_from || &apos;%&apos;)" physicalName="DOWN_PAYMENT_RATIO_FROM" prompt="HLS_PRODUCT_PLAN_DEFINITION.DOWN_PAYMENT_RATIO_FROM"/>
        <bm:field name="down_payment_ratio_to" databaseType="VARCHAR2" datatype="java.lang.String" expression="decode(down_payment_ratio_to,null,down_payment_ratio_to,down_payment_ratio_to || &apos;%&apos;)" physicalName="DOWN_PAYMENT_RATIO_TO" prompt="HLS_PRODUCT_PLAN_DEFINITION.DOWN_PAYMENT_RATIO_TO"/>
        <bm:field name="balloon_ratio_from" databaseType="VARCHAR2" datatype="java.lang.String" expression="decode(balloon_ratio_from,null,balloon_ratio_from,balloon_ratio_from || &apos;%&apos;)" physicalName="BALLOON_RATIO_FROM" prompt="HLS_PRODUCT_PLAN_DEFINITION.BALLOON_RATIO_FROM"/>
        <bm:field name="balloon_ratio_to" databaseType="VARCHAR2" datatype="java.lang.String" expression="decode(balloon_ratio_to,null,balloon_ratio_to,balloon_ratio_to || &apos;%&apos;)" physicalName="BALLOON_RATIO_TO" prompt="HLS_PRODUCT_PLAN_DEFINITION.BALLOON_RATIO_TO"/>
        <bm:field name="deposit_ratio_from" databaseType="VARCHAR2" datatype="java.lang.String" expression="decode(deposit_ratio_from,null,deposit_ratio_from,deposit_ratio_from || &apos;%&apos;)" physicalName="DEPOSIT_RATIO_FROM" prompt="HLS_PRODUCT_PLAN_DEFINITION.DEPOSIT_RATIO_FROM"/>
        <bm:field name="deposit_ratio_to" databaseType="VARCHAR2" datatype="java.lang.String" expression="decode(deposit_ratio_to,null,deposit_ratio_to,deposit_ratio_to || &apos;%&apos;)" physicalName="DEPOSIT_RATIO_TO" prompt="HLS_PRODUCT_PLAN_DEFINITION.DEPOSIT_RATIO_TO"/>
        <bm:field name="to_grant" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TO_GRANT" prompt="HLS_PRODUCT_PLAN_DEFINITION.TO_GRANT"/>
        <bm:field name="special_note" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SPECIAL_NOTE" prompt="HLS_PRODUCT_PLAN_DEFINITION.SPECIAL_NOTE"/>
        <bm:field name="enable_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLE_FLAG" prompt="HLS_PRODUCT_PLAN_DEFINITION.ENABLE_FLAG"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <o:sequence-pk/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="product_plan_id"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field name="product_type" queryExpression="t1.product_type like ${@product_type}"/>
        <bm:query-field name="pay_type" queryExpression="t1.pay_type like ${@pay_type}"/>
        <bm:query-field name="times_from" queryExpression="t1.times_from like ${@times_from}"/>
        <bm:query-field name="times_to" queryExpression="t1.times_to like ${@times_to}"/>
        <bm:query-field name="down_payment_ratio_from" queryExpression="t1.down_payment_ratio_from like &apos;%&apos;||${@down_payment_ratio_from}*100||&apos;%&apos;"/>
        <bm:query-field name="down_payment_ratio_to" queryExpression="t1.down_payment_ratio_to like &apos;%&apos;||${@down_payment_ratio_to}*100||&apos;%&apos;"/>
        <bm:query-field name="deposit_ratio_from" queryExpression="t1.deposit_ratio_from like &apos;%&apos;||${@deposit_ratio_from}*100||&apos;%&apos;"/>
        <bm:query-field name="deposit_ratio_to" queryExpression="t1.deposit_ratio_to like &apos;%&apos;||${@deposit_ratio_to}*100||&apos;%&apos;"/>
    </bm:query-fields>
</bm:model>
