2019-12-24 15:17:14 +08:00

353 lines
16 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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>402882335e316a9e015e31ff5da20014</id>
<name>借款统计表</name>
<enname>loan_statistics</enname>
<code>REPORT_CODE_1504077372830</code>
<isActived>true</isActived>
<position>5</position>
<reportType>REPORT</reportType>
<parentReport>2c9c81b7685efbbc016931cef7cd000c</parentReport>
<children/>
<layouts>
<layout>402882335e316a9e015e322117660016</layout>
</layouts>
</report>
</reports>
<tables>
<table>
<id>402882335e316a9e015e32006c300015</id>
<name>借款统计表</name>
<enname>loan_statistics</enname>
<reportDataSource>2c9023815726a036015726a496b00001</reportDataSource>
<queryType>COMPLEXSQL</queryType>
<sql>SELECT&#xD;
lbi.bill_id,&#xD;
ll.id AS lendid,&#xD;
ll.lender,&#xD;
ROUND(lbi.loan_amount,2)/10000 AS loan_amount,&#xD;
lbi.rate,&#xD;
IFNULL(ROUND(lbfplist.servicemoney,2),0.00)/10000 AS servicemoney,&#xD;
IFNULL(ROUND(lbfplist.managemoney,2),0.00)/10000 AS managemoney,&#xD;
IFNULL(ROUND(lbfplist.cautionmoney,2),0.00)/10000 AS cautionmoney,&#xD;
IFNULL(ROUND(liplist.suminterest,2),0.00)/10000 AS suminterest,&#xD;
lbi.loan_term,&#xD;
IFNULL(ROUND(lfrilist.sumrent,2),0.00)/10000 AS sumrent,&#xD;
ROUND(lbi.loan_amount+liplist.suminterest-IFNULL(lfrilist.sumrent,0.00),2)/10000 remainingrent&#xD;
FROM &#xD;
loan_bill_info lbi&#xD;
LEFT JOIN &#xD;
(SELECT&#xD;
lbfp.bill_id,&#xD;
SUM(CASE lbfp.fee_type WHEN 'LoanFeeType04' THEN lbfp.plan_money ELSE 0.00 END) AS servicemoney,&#xD;
SUM(CASE lbfp.fee_type WHEN 'LoanFeeType07' THEN lbfp.plan_money ELSE 0.00 END) AS managemoney,&#xD;
SUM(CASE lbfp.fee_type WHEN 'LoanFeeType05' THEN lbfp.plan_money ELSE 0.00 END) AS cautionmoney&#xD;
FROM LOAN_BILL_FEE_PLAN lbfp&#xD;
GROUP BY lbfp.bill_id&#xD;
) lbfplist ON lbfplist.bill_id=lbi.id&#xD;
LEFT JOIN (SELECT lip.bill_id,SUM(lip.interest) suminterest FROM LOAN_INTEREST_PLAN lip GROUP BY lip.bill_id)liplist ON lbi.id=liplist.bill_id&#xD;
LEFT JOIN (SELECT lfri.bill_id,SUM(lfri.rent) sumrent FROM LOAN_FUND_RENT_INCOME lfri GROUP BY lfri.bill_id)lfrilist ON lbi.id=lfrilist.bill_id &#xD;
LEFT JOIN LOAN_CONTRACT_INFO lci ON lci.id=lbi.contract_id&#xD;
LEFT JOIN LOAN_LENDER ll ON ll.id=lbi.lender_id&#xD;
ORDER BY lbi.bill_id,ll.lender</sql>
<sqlParamValue></sqlParamValue>
<columns>
<column>
<id>402882335e316a9e015e322f8ad7001e</id>
<name>bill_id</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>提款单号</label>
<enLabel>bill_id</enLabel>
<width>100</width>
<position>12</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>402882335e316a9e015e322f8ad70023</id>
<name>lendid</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>lendid</label>
<enLabel>lendid</enLabel>
<width>100</width>
<position>13</position>
<isVisible>false</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
<isCountSubTotal>false</isCountSubTotal>
<isGroupby>false</isGroupby>
<isMerge>false</isMerge>
<action></action>
<actionParamters></actionParamters>
<actionCondition></actionCondition>
</column>
<column>
<id>402882335e316a9e015e322f8ad7001d</id>
<name>lender</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>贷款人</label>
<enLabel>lender</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>402882335e316a9e015e322f8ad7001c</id>
<name>loan_amount</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.000000</formater>
<label>总金额(万元)</label>
<enLabel>loan_amount</enLabel>
<width>100</width>
<position>15</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
<isCountSubTotal>false</isCountSubTotal>
<isGroupby>false</isGroupby>
<isMerge>false</isMerge>
<alignType>RIGHT</alignType>
<action></action>
<actionParamters></actionParamters>
<actionCondition></actionCondition>
</column>
<column>
<id>402882335e316a9e015e322f8ad7001a</id>
<name>rate</name>
<columnDataType>NUMBER</columnDataType>
<formater></formater>
<label>年利率(%</label>
<enLabel>rate</enLabel>
<width>100</width>
<position>16</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
<isCountSubTotal>false</isCountSubTotal>
<isGroupby>false</isGroupby>
<isMerge>false</isMerge>
<alignType>RIGHT</alignType>
<action></action>
<actionParamters></actionParamters>
<actionCondition></actionCondition>
</column>
<column>
<id>402882335e316a9e015e322f8ad7001f</id>
<name>servicemoney</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.000000</formater>
<label>服务费(万元)</label>
<enLabel>servicemoney</enLabel>
<width>100</width>
<position>17</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
<isCountSubTotal>false</isCountSubTotal>
<isGroupby>false</isGroupby>
<isMerge>false</isMerge>
<alignType>RIGHT</alignType>
<action></action>
<actionParamters></actionParamters>
<actionCondition></actionCondition>
</column>
<column>
<id>402882335e316a9e015e322f8ad70021</id>
<name>managemoney</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.000000</formater>
<label>担保费(万元)</label>
<enLabel>managemoney</enLabel>
<width>100</width>
<position>18</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
<isCountSubTotal>false</isCountSubTotal>
<isGroupby>false</isGroupby>
<isMerge>false</isMerge>
<alignType>RIGHT</alignType>
<action></action>
<actionParamters></actionParamters>
<actionCondition></actionCondition>
</column>
<column>
<id>402882335e316a9e015e322f8ad60019</id>
<name>cautionmoney</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.000000</formater>
<label>保证金(万元)</label>
<enLabel>cautionmoney</enLabel>
<width>100</width>
<position>19</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
<isCountSubTotal>false</isCountSubTotal>
<isGroupby>false</isGroupby>
<isMerge>false</isMerge>
<alignType>RIGHT</alignType>
<action></action>
<actionParamters></actionParamters>
<actionCondition></actionCondition>
</column>
<column>
<id>402882335e316a9e015e322f8ad70020</id>
<name>suminterest</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.000000</formater>
<label>利息总金额(万元)</label>
<enLabel>suminterest</enLabel>
<width>100</width>
<position>20</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
<isCountSubTotal>false</isCountSubTotal>
<isGroupby>false</isGroupby>
<isMerge>false</isMerge>
<alignType>RIGHT</alignType>
<action></action>
<actionParamters></actionParamters>
<actionCondition></actionCondition>
</column>
<column>
<id>402882335e316a9e015e322f8ad70022</id>
<name>loan_term</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>期限(月)</label>
<enLabel>loan_term</enLabel>
<width>100</width>
<position>21</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
<isCountSubTotal>false</isCountSubTotal>
<isGroupby>false</isGroupby>
<isMerge>false</isMerge>
<alignType>RIGHT</alignType>
<action></action>
<actionParamters></actionParamters>
<actionCondition></actionCondition>
</column>
<column>
<id>402882335e316a9e015e322f8ad60018</id>
<name>sumrent</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.000000</formater>
<label>已还贷款(万元)</label>
<enLabel>sumrent</enLabel>
<width>100</width>
<position>22</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
<isCountSubTotal>false</isCountSubTotal>
<isGroupby>false</isGroupby>
<isMerge>false</isMerge>
<alignType>RIGHT</alignType>
<action></action>
<actionParamters></actionParamters>
<actionCondition></actionCondition>
</column>
<column>
<id>402882335e316a9e015e322f8ad7001b</id>
<name>remainingrent</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.000000</formater>
<label>未还总金额(万元)</label>
<enLabel>remainingrent</enLabel>
<width>100</width>
<position>23</position>
<isVisible>true</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
<isCountSubTotal>false</isCountSubTotal>
<isGroupby>false</isGroupby>
<isMerge>false</isMerge>
<alignType>RIGHT</alignType>
<action></action>
<actionParamters></actionParamters>
<actionCondition></actionCondition>
</column>
</columns>
<controls/>
<searchs/>
<searchExpress></searchExpress>
<filters>
<filter>
<id>402882335e316a9e015e3238b3cd0024</id>
<name>bill_id</name>
<label>提款单号</label>
<filterType>FILTER</filterType>
<dbType>STRING</dbType>
<htmlType>TEXT</htmlType>
<position>0</position>
</filter>
<filter>
<id>402882335e316a9e015e32391c7e0025</id>
<name>lender</name>
<label>贷款人</label>
<filterType>FILTER</filterType>
<position>1</position>
</filter>
</filters>
<filterExpress></filterExpress>
<pageSize>20</pageSize>
<showRowNumber>false</showRowNumber>
<showTotalTitle>false</showTotalTitle>
<isScale>true</isScale>
<isCache>false</isCache>
<isExcel>false</isExcel>
</table>
</tables>
<charts/>
<pages/>
<layouts>
<layout>
<id>402882335e316a9e015e322117660016</id>
<divHeight>0</divHeight>
<divWidth>0</divWidth>
<position>0</position>
<contentId>TABLE#402882335e316a9e015e32006c300015</contentId>
<report>402882335e316a9e015e31ff5da20014</report>
<contentType>TABLE</contentType>
</layout>
</layouts>
</TenwaReport>