209 lines
8.5 KiB
XML
209 lines
8.5 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>402882335e0256cb015e02b3d1ec0005</id>
|
|
<name>贷款余额(按贷款人)</name>
|
|
<enname>loan_over_lender</enname>
|
|
<code>REPORT_CODE_1503283892711</code>
|
|
<isActived>true</isActived>
|
|
<position>1</position>
|
|
<reportType>REPORT</reportType>
|
|
<parentReport>2c9c81b7685efbbc016931cef7cd000c</parentReport>
|
|
<children/>
|
|
<layouts>
|
|
<layout>402882335e037706015e0381c80f0007</layout>
|
|
</layouts>
|
|
</report>
|
|
</reports>
|
|
<tables>
|
|
<table>
|
|
<id>402882335e037706015e0381a1dc0001</id>
|
|
<name>贷款余额(按贷款人)</name>
|
|
<enname>loan_over_lender</enname>
|
|
<reportDataSource>2c9023815726a036015726a496b00001</reportDataSource>
|
|
<queryType>COMPLEXSQL</queryType>
|
|
<sql>SELECT 
|
|
ll.lender,
|
|
getItemName('Currency',corpuslist.currency) AS currencyname,
|
|
corpuslist.longovermoney,
|
|
corpuslist.shortovermoney,
|
|
IFNULL(corpuslist.longovermoney,0.00)+IFNULL(corpuslist.shortovermoney,0.00) AS sumovermoney
|
|
FROM
|
|
(SELECT 
|
|
lcp.id,
|
|
lbi.lender_id,
|
|
lcp.currency,
|
|
SUM(CASE WHEN lbi.sub_loan_type='sub_loan_type01' THEN lcp.corpus ELSE 0.00 END) AS longovermoney,
|
|
SUM(CASE WHEN lbi.sub_loan_type='sub_loan_type02' THEN lcp.corpus ELSE 0.00 END) AS shortovermoney
|
|
FROM
|
|
LOAN_CORPUS_PLAN lcp 
|
|
LEFT JOIN LOAN_BILL_INFO lbi ON lcp.bill_id=lbi.id
|
|
WHERE 1=1 
|
|
/~enddate:AND lcp.plan_date>'{enddate}'~/
|
|
GROUP BY lbi.lender_id,lcp.currency) corpuslist 
|
|
LEFT JOIN 
|
|
LOAN_LENDER ll ON ll.id=corpuslist.lender_id</sql>
|
|
<sqlParamValue>enddate</sqlParamValue>
|
|
<columns>
|
|
<column>
|
|
<id>402882335e037706015e0381a1e90005</id>
|
|
<name>lender</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>贷款人</label>
|
|
<enLabel>lender</enLabel>
|
|
<width>100</width>
|
|
<position>5</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>402882335e037706015e0381a1e90002</id>
|
|
<name>currencyname</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>币种</label>
|
|
<enLabel>currencyname</enLabel>
|
|
<width>100</width>
|
|
<position>6</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>402882335e037706015e0381a1e90006</id>
|
|
<name>longovermoney</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater>#,##0.00</formater>
|
|
<label>长期借款余额</label>
|
|
<enLabel>longovermoney</enLabel>
|
|
<width>100</width>
|
|
<position>7</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>402882335e037706015e0381a1e90004</id>
|
|
<name>shortovermoney</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater>#,##0.00</formater>
|
|
<label>短期借款余额</label>
|
|
<enLabel>shortovermoney</enLabel>
|
|
<width>100</width>
|
|
<position>8</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>402882335e037706015e0381a1e90003</id>
|
|
<name>sumovermoney</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater>#,##0.00</formater>
|
|
<label>总计</label>
|
|
<enLabel>sumovermoney</enLabel>
|
|
<width>100</width>
|
|
<position>9</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>
|
|
<search>
|
|
<id>402882335e037706015e038577aa0008</id>
|
|
<name>enddate</name>
|
|
<label>截止日期</label>
|
|
<filterType>SEARCH</filterType>
|
|
<dbType>DATE</dbType>
|
|
<htmlType>DATE</htmlType>
|
|
<position>0</position>
|
|
</search>
|
|
</searchs>
|
|
<searchExpress></searchExpress>
|
|
<filters>
|
|
<filter>
|
|
<id>402882335e037706015e0392172e0009</id>
|
|
<name>lender</name>
|
|
<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>402882335e037706015e0381c80f0007</id>
|
|
<divHeight>0</divHeight>
|
|
<divWidth>0</divWidth>
|
|
<position>0</position>
|
|
<contentId>TABLE#402882335e037706015e0381a1dc0001</contentId>
|
|
<report>402882335e0256cb015e02b3d1ec0005</report>
|
|
<contentType>TABLE</contentType>
|
|
</layout>
|
|
</layouts>
|
|
</TenwaReport>
|