353 lines
16 KiB
XML
353 lines
16 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>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
|
||
lbi.bill_id,
|
||
ll.id AS lendid,
|
||
ll.lender,
|
||
ROUND(lbi.loan_amount,2)/10000 AS loan_amount,
|
||
lbi.rate,
|
||
IFNULL(ROUND(lbfplist.servicemoney,2),0.00)/10000 AS servicemoney,
|
||
IFNULL(ROUND(lbfplist.managemoney,2),0.00)/10000 AS managemoney,
|
||
IFNULL(ROUND(lbfplist.cautionmoney,2),0.00)/10000 AS cautionmoney,
|
||
IFNULL(ROUND(liplist.suminterest,2),0.00)/10000 AS suminterest,
|
||
lbi.loan_term,
|
||
IFNULL(ROUND(lfrilist.sumrent,2),0.00)/10000 AS sumrent,
|
||
ROUND(lbi.loan_amount+liplist.suminterest-IFNULL(lfrilist.sumrent,0.00),2)/10000 remainingrent
|
||
FROM 
|
||
loan_bill_info lbi
|
||
LEFT JOIN 
|
||
(SELECT
|
||
lbfp.bill_id,
|
||
SUM(CASE lbfp.fee_type WHEN 'LoanFeeType04' THEN lbfp.plan_money ELSE 0.00 END) AS servicemoney,
|
||
SUM(CASE lbfp.fee_type WHEN 'LoanFeeType07' THEN lbfp.plan_money ELSE 0.00 END) AS managemoney,
|
||
SUM(CASE lbfp.fee_type WHEN 'LoanFeeType05' THEN lbfp.plan_money ELSE 0.00 END) AS cautionmoney
|
||
FROM LOAN_BILL_FEE_PLAN lbfp
|
||
GROUP BY lbfp.bill_id
|
||
) lbfplist ON lbfplist.bill_id=lbi.id
|
||
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
|
||
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 
|
||
LEFT JOIN LOAN_CONTRACT_INFO lci ON lci.id=lbi.contract_id
|
||
LEFT JOIN LOAN_LENDER ll ON ll.id=lbi.lender_id
|
||
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>
|