367 lines
18 KiB
XML
367 lines
18 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<TenwaReport>
|
|
<datasources>
|
|
<datasource>
|
|
<id>2c9023815726a036015726a496b00001</id>
|
|
<dataSourceName>eleasing_mysql</dataSourceName>
|
|
<dataSourceType>SPRING</dataSourceType>
|
|
<jndi>dataSourceJDBC</jndi>
|
|
<url></url>
|
|
<username></username>
|
|
<driverName></driverName>
|
|
<password></password>
|
|
<dialect>com.tenwa.report.query.dialect.MysqlDialect</dialect>
|
|
<dialectName>Mysql</dialectName>
|
|
</datasource>
|
|
</datasources>
|
|
<reports>
|
|
<report>
|
|
<id>2c9c81b5687ebb7e016a85f20d130535</id>
|
|
<name>保证金比例报表</name>
|
|
<enname>margin_ratio</enname>
|
|
<code>REPORT_CODE_1557025393939</code>
|
|
<isActived>true</isActived>
|
|
<position>42</position>
|
|
<reportType>REPORT</reportType>
|
|
<parentReport>2c9c81b5687ebb7e016a682764fb0404</parentReport>
|
|
<children/>
|
|
<layouts>
|
|
<layout>2c9c81b5687ebb7e016a85f3203b053d</layout>
|
|
</layouts>
|
|
</report>
|
|
</reports>
|
|
<tables>
|
|
<table>
|
|
<id>2c9c81b5687ebb7e016a85f300c20536</id>
|
|
<name>保证金比例报表</name>
|
|
<enname>margin_ratio</enname>
|
|
<reportDataSource>2c9023815726a036015726a496b00001</reportDataSource>
|
|
<queryType>COMPLEXSQL</queryType>
|
|
<sql>SELECT
|
|
IFNULL(di.total,0) total,
|
|
IFNULL(lccs.fact_money,0) factMoney,
|
|
IFNULL(ddis.CAUTION_MONEY_S,'0.00') CAUTION_MONEY_S,
|
|
IFNULL(ddris.CAUTION_MONEY_S,0)-IFNULL(ddcis.CAUTION_MONEY_S,0) AS rents,
|
|
|
|
ROUND((IFNULL(vlrp.corpus_over,0) * IFNULL(di.margin_scale_set,0))/100,2)- IFNULL(di.total,0)-(IFNULL(vlrp.corpus_over,0)) AS should_money,
|
|
di.distributor_no,
|
|
di.distributor_name,
|
|
(IFNULL(dp.CAUTION_MONEY,0) - IFNULL(de.CAUTION_MONEY,0)) over_list,
|
|
(IFNULL(vlrp.corpus_over,0)) corpus_over,
|
|
IFNULL(di.total,0)-(IFNULL(vlrp.corpus_over,0)) AS leftover_money,
|
|
CONCAT(CASE WHEN (di.margin_scale_set IS NULL OR di.margin_scale_set='') THEN '0.00' ELSE ROUND(di.margin_scale_set,2) END,'%') margin_scale_set,
|
|
ROUND((IFNULL(vlrp.corpus_over,0) * IFNULL(di.margin_scale_set,0))/100,2) over_info,
|
|
CASE WHEN (IFNULL(dp.CAUTION_MONEY,0) - IFNULL(de.CAUTION_MONEY,0)) >= (IFNULL(vlrp.corpus_over,0) * IFNULL(di.margin_scale_set,0))/100 THEN '否' ELSE '是' END AS 'polishing'
|
|
FROM distributor_info di
|
|
LEFT JOIN (SELECT SUM(IFNULL(CAUTION_MONEY,0)) CAUTION_MONEY,DISTRIBUTOR_ID FROM D_DEPOSITCHARGE_INFO GROUP BY DISTRIBUTOR_ID ) dp ON dp.DISTRIBUTOR_ID = di.DISTRIBUTOR_no
|
|
LEFT JOIN (SELECT SUM(IFNULL(CAUTION_MONEY,0)) CAUTION_MONEY,DISTRIBUTOR_ID FROM D_DEPOSITRETURN_INFO GROUP BY DISTRIBUTOR_ID) de ON de.DISTRIBUTOR_ID = di.distributor_no
|
|
LEFT JOIN (SELECT SUM(vlrp.corpus_over) corpus_over,di.distributor_no FROM vi_lc_rent_plan11 vlrp
|
|
LEFT JOIN lb_contract_info lci ON vlrp.contract_id = lci.id
|
|
LEFT JOIN distributor_info di ON lci.distributor_id = di.distributor_no
|
|
GROUP BY di.distributor_no
|
|
) vlrp ON vlrp.distributor_no=di.distributor_no
|
|
LEFT JOIN
|
|
(SELECT lci.distributor_id,SUM(lcc.clean_lease_money) fact_money FROM lc_calc_condition lcc LEFT JOIN lb_contract_info lci ON lci.id=lcc.contract_id WHERE (lci.CONTRACT_STATUS BETWEEN 31 AND 100 OR lci.CONTRACT_STATUS='103' OR lci.CONTRACT_STATUS='105') GROUP BY lci.distributor_id) lccs ON lccs.distributor_id=di.distributor_no
|
|
|
|
LEFT JOIN (SELECT DISTRIBUTOR_ID,SUM(IFNULL(CAUTION_MONEY,0)) AS CAUTION_MONEY_S FROM D_DEPOSITCHARGE_INFO WHERE money_type='bondCollect' GROUP BY DISTRIBUTOR_ID) ddis ON ddis.DISTRIBUTOR_ID = di.distributor_no
|
|
LEFT JOIN (SELECT DISTRIBUTOR_ID,SUM(IFNULL(CAUTION_MONEY,0)) AS CAUTION_MONEY_S FROM D_DEPOSITCHARGE_INFO WHERE money_type='bondBack' GROUP BY DISTRIBUTOR_ID) ddcis ON ddcis.DISTRIBUTOR_ID = di.distributor_no
|
|
LEFT JOIN (SELECT DISTRIBUTOR_ID,SUM(IFNULL(CAUTION_MONEY,0)) AS CAUTION_MONEY_S FROM D_DEPOSITRETURN_INFO WHERE money_type='bondRepay' GROUP BY DISTRIBUTOR_ID) ddris ON ddris.DISTRIBUTOR_ID = di.distributor_no</sql>
|
|
<sqlParamValue></sqlParamValue>
|
|
<columns>
|
|
<column>
|
|
<id>2c9c81b5687ebb7e016a85f300c2053c</id>
|
|
<name>distributor_no</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>经销商编号</label>
|
|
<enLabel>distributor_no</enLabel>
|
|
<width>100</width>
|
|
<position>13</position>
|
|
<isVisible>true</isVisible>
|
|
<color></color>
|
|
<isCountTotal>false</isCountTotal>
|
|
<isCountSubTotal>false</isCountSubTotal>
|
|
<isGroupby>false</isGroupby>
|
|
<isMerge>false</isMerge>
|
|
<action></action>
|
|
<actionParamters></actionParamters>
|
|
<actionCondition></actionCondition>
|
|
</column>
|
|
<column>
|
|
<id>2c9c81b5687ebb7e016a85f300c20539</id>
|
|
<name>distributor_name</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>经销商名称</label>
|
|
<enLabel>distributor_name</enLabel>
|
|
<width>100</width>
|
|
<position>14</position>
|
|
<isVisible>true</isVisible>
|
|
<color></color>
|
|
<isCountTotal>false</isCountTotal>
|
|
<isCountSubTotal>false</isCountSubTotal>
|
|
<isGroupby>false</isGroupby>
|
|
<isMerge>false</isMerge>
|
|
<action></action>
|
|
<actionParamters></actionParamters>
|
|
<actionCondition></actionCondition>
|
|
</column>
|
|
<column>
|
|
<id>2c9c81b57188845c0171a181733c0001</id>
|
|
<name>total</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>审批额度</label>
|
|
<enLabel>total</enLabel>
|
|
<width>100</width>
|
|
<position>15</position>
|
|
<isVisible>true</isVisible>
|
|
<color></color>
|
|
<isCountTotal>false</isCountTotal>
|
|
<isCountSubTotal>false</isCountSubTotal>
|
|
<isGroupby>false</isGroupby>
|
|
<isMerge>false</isMerge>
|
|
<action></action>
|
|
<actionParamters></actionParamters>
|
|
<actionCondition></actionCondition>
|
|
</column>
|
|
<column>
|
|
<id>2c9c81b57188845c0171a1817bff0004</id>
|
|
<name>factMoney</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>实际放款金额</label>
|
|
<enLabel>factMoney</enLabel>
|
|
<width>100</width>
|
|
<position>16</position>
|
|
<isVisible>true</isVisible>
|
|
<color></color>
|
|
<isCountTotal>false</isCountTotal>
|
|
<isCountSubTotal>false</isCountSubTotal>
|
|
<isGroupby>false</isGroupby>
|
|
<isMerge>false</isMerge>
|
|
<action></action>
|
|
<actionParamters></actionParamters>
|
|
<actionCondition></actionCondition>
|
|
</column>
|
|
<column>
|
|
<id>2c9c81b57188845c0171a1817bff0002</id>
|
|
<name>leftover_money</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>剩余额度</label>
|
|
<enLabel>leftover_money</enLabel>
|
|
<width>100</width>
|
|
<position>17</position>
|
|
<isVisible>true</isVisible>
|
|
<color></color>
|
|
<isCountTotal>false</isCountTotal>
|
|
<isCountSubTotal>false</isCountSubTotal>
|
|
<isGroupby>false</isGroupby>
|
|
<isMerge>false</isMerge>
|
|
<action></action>
|
|
<actionParamters></actionParamters>
|
|
<actionCondition></actionCondition>
|
|
</column>
|
|
<column>
|
|
<id>2c9c81b5687ebb7e016a9035e3ce053f</id>
|
|
<name>corpus_over</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>贷款余额</label>
|
|
<enLabel>corpus_over</enLabel>
|
|
<width>100</width>
|
|
<position>18</position>
|
|
<isVisible>true</isVisible>
|
|
<color></color>
|
|
<isCountTotal>false</isCountTotal>
|
|
<isCountSubTotal>false</isCountSubTotal>
|
|
<isGroupby>false</isGroupby>
|
|
<isMerge>false</isMerge>
|
|
<action></action>
|
|
<actionParamters></actionParamters>
|
|
<actionCondition></actionCondition>
|
|
</column>
|
|
<column>
|
|
<id>2c9c81b5687ebb7e016a85f300c2053b</id>
|
|
<name>margin_scale_set</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>保证金比例</label>
|
|
<enLabel>margin_scale_set</enLabel>
|
|
<width>100</width>
|
|
<position>19</position>
|
|
<isVisible>true</isVisible>
|
|
<color></color>
|
|
<isCountTotal>false</isCountTotal>
|
|
<isCountSubTotal>false</isCountSubTotal>
|
|
<isGroupby>false</isGroupby>
|
|
<isMerge>false</isMerge>
|
|
<action></action>
|
|
<actionParamters></actionParamters>
|
|
<actionCondition></actionCondition>
|
|
</column>
|
|
<column>
|
|
<id>2c9c81b5687ebb7e016a85f300c20538</id>
|
|
<name>over_info</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>应交保证金金额</label>
|
|
<enLabel>over_info</enLabel>
|
|
<width>100</width>
|
|
<position>20</position>
|
|
<isVisible>true</isVisible>
|
|
<color></color>
|
|
<isCountTotal>false</isCountTotal>
|
|
<isCountSubTotal>false</isCountSubTotal>
|
|
<isGroupby>false</isGroupby>
|
|
<isMerge>false</isMerge>
|
|
<action></action>
|
|
<actionParamters></actionParamters>
|
|
<actionCondition></actionCondition>
|
|
</column>
|
|
<column>
|
|
<id>2c9c81b57188845c0171a1817bff0003</id>
|
|
<name>CAUTION_MONEY_S</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>实缴金额</label>
|
|
<enLabel>CAUTION_MONEY_S</enLabel>
|
|
<width>100</width>
|
|
<position>21</position>
|
|
<isVisible>true</isVisible>
|
|
<color></color>
|
|
<isCountTotal>false</isCountTotal>
|
|
<isCountSubTotal>false</isCountSubTotal>
|
|
<isGroupby>false</isGroupby>
|
|
<isMerge>false</isMerge>
|
|
<action></action>
|
|
<actionParamters></actionParamters>
|
|
<actionCondition></actionCondition>
|
|
</column>
|
|
<column>
|
|
<id>2c9c81b57114bb240171294ff0690002</id>
|
|
<name>rents</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>冲抵金额</label>
|
|
<enLabel>rents</enLabel>
|
|
<width>100</width>
|
|
<position>22</position>
|
|
<isVisible>true</isVisible>
|
|
<color></color>
|
|
<isCountTotal>false</isCountTotal>
|
|
<isCountSubTotal>false</isCountSubTotal>
|
|
<isGroupby>false</isGroupby>
|
|
<isMerge>false</isMerge>
|
|
<action></action>
|
|
<actionParamters></actionParamters>
|
|
<actionCondition></actionCondition>
|
|
</column>
|
|
<column>
|
|
<id>2c9c81b5687ebb7e016a85f300c2053a</id>
|
|
<name>over_list</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>剩余保证金金额</label>
|
|
<enLabel>over_list</enLabel>
|
|
<width>100</width>
|
|
<position>23</position>
|
|
<isVisible>true</isVisible>
|
|
<color></color>
|
|
<isCountTotal>false</isCountTotal>
|
|
<isCountSubTotal>false</isCountSubTotal>
|
|
<isGroupby>false</isGroupby>
|
|
<isMerge>false</isMerge>
|
|
<action></action>
|
|
<actionParamters></actionParamters>
|
|
<actionCondition></actionCondition>
|
|
</column>
|
|
<column>
|
|
<id>2c9c81b5687ebb7e016a904c834b0540</id>
|
|
<name>polishing</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>是否需要补齐保证金</label>
|
|
<enLabel>polishing</enLabel>
|
|
<width>100</width>
|
|
<position>24</position>
|
|
<isVisible>true</isVisible>
|
|
<color></color>
|
|
<isCountTotal>false</isCountTotal>
|
|
<isCountSubTotal>false</isCountSubTotal>
|
|
<isGroupby>false</isGroupby>
|
|
<isMerge>false</isMerge>
|
|
<action></action>
|
|
<actionParamters></actionParamters>
|
|
<actionCondition></actionCondition>
|
|
</column>
|
|
<column>
|
|
<id>2c9c81b571a47ba00171b40fb03d0001</id>
|
|
<name>should_money</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>需补充保证金金额</label>
|
|
<enLabel>should_money</enLabel>
|
|
<width>100</width>
|
|
<position>25</position>
|
|
<isVisible>true</isVisible>
|
|
<color></color>
|
|
<isCountTotal>false</isCountTotal>
|
|
<isCountSubTotal>false</isCountSubTotal>
|
|
<isGroupby>false</isGroupby>
|
|
<isMerge>false</isMerge>
|
|
<action></action>
|
|
<actionParamters></actionParamters>
|
|
<actionCondition></actionCondition>
|
|
</column>
|
|
</columns>
|
|
<controls/>
|
|
<searchs/>
|
|
<searchExpress></searchExpress>
|
|
<filters>
|
|
<filter>
|
|
<id>2c9c81b5687ebb7e016a90539eec0541</id>
|
|
<name>distributor_no</name>
|
|
<enname>distributor_no</enname>
|
|
<label>经销商编号</label>
|
|
<filterType>FILTER</filterType>
|
|
<dbType>STRING</dbType>
|
|
<htmlType>TEXT</htmlType>
|
|
<position>0</position>
|
|
</filter>
|
|
<filter>
|
|
<id>2c9c81b5687ebb7e016a90545e7a0542</id>
|
|
<name>distributor_name</name>
|
|
<enname>distributor_name</enname>
|
|
<label>经销商名称</label>
|
|
<filterType>FILTER</filterType>
|
|
<dbType>STRING</dbType>
|
|
<htmlType>TEXT</htmlType>
|
|
<position>1</position>
|
|
</filter>
|
|
</filters>
|
|
<filterExpress></filterExpress>
|
|
<pageSize>20</pageSize>
|
|
<showRowNumber>false</showRowNumber>
|
|
<showTotalTitle>false</showTotalTitle>
|
|
<isScale>false</isScale>
|
|
<isCache>false</isCache>
|
|
<isExcel>false</isExcel>
|
|
</table>
|
|
</tables>
|
|
<charts/>
|
|
<pages/>
|
|
<layouts>
|
|
<layout>
|
|
<id>2c9c81b5687ebb7e016a85f3203b053d</id>
|
|
<divHeight>0</divHeight>
|
|
<divWidth>0</divWidth>
|
|
<position>0</position>
|
|
<contentId>TABLE#2c9c81b5687ebb7e016a85f300c20536</contentId>
|
|
<report>2c9c81b5687ebb7e016a85f20d130535</report>
|
|
<contentType>TABLE</contentType>
|
|
</layout>
|
|
</layouts>
|
|
</TenwaReport>
|