398 lines
19 KiB
XML
398 lines
19 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>2c9c81b97520309601754a7b6733001b</id>
|
|
<name>逾期未还款合同数量统计表</name>
|
|
<enname>overdue_day_report</enname>
|
|
<code>REPORT_CODE_1603272402739</code>
|
|
<isActived>true</isActived>
|
|
<position>30</position>
|
|
<reportType>REPORT</reportType>
|
|
<parentReport>2c9c81b7685efbbc016931c675a50006</parentReport>
|
|
<children/>
|
|
<layouts>
|
|
<layout>2c9c81b97520309601754a7c2bca001d</layout>
|
|
</layouts>
|
|
</report>
|
|
</reports>
|
|
<tables>
|
|
<table>
|
|
<id>2c9c81b97520309601754a7bf91d001c</id>
|
|
<name>逾期未还款合同数量统计表</name>
|
|
<enname>overdue_day_report</enname>
|
|
<reportDataSource>2c9023815726a036015726a496b00001</reportDataSource>
|
|
<queryType>COMPLEXSQL</queryType>
|
|
<sql>select sum(t.rents) rents,
|
|
count(case when t.days >= 3 then 1 ELSE null END) count2,
|
|
count(case when t.days >= 30 then 1 ELSE null END) count30,
|
|
count(case when t.days >= 60 then 1 ELSE null END) count60,
|
|
count(case when t.days >= 90 then 1 ELSE null END) count90,
|
|
(select SUM(vrentover) from `contract_statis_car`) vrentover,
|
|
(select SUM(csc.`vrentover`)
|
|
from `contract_statis_car` csc
|
|
where csc.`contract_number` IN (select DISTINCT(rrp.`contract_number`)
|
|
from `report_rent_plan` rrp
|
|
where rrp.`batch_status` = '未完成'
|
|
/~startdate:and str_to_date(replace(left(rrp.PLAN_DATE, 10), '/', '-'), '%Y-%m-%d') <= str_to_date('{startdate}', '%Y/%m/%d')~/)
|
|
) vrentoverleft,
|
|
|
|
(select SUM(csc.`vrentover`)
|
|
from `contract_statis_car` csc
|
|
where csc.`contract_number` IN (select DISTINCT(rrp.`contract_number`)
|
|
from `report_rent_plan` rrp
|
|
where rrp.`batch_status` = '未完成'
|
|
and (rrp.over_days > 2 and rrp.over_days is not null )
|
|
/~startdate: and str_to_date(replace(left(rrp.PLAN_DATE, 10), '/', '-'), '%Y-%m-%d') <= str_to_date('{startdate}', '%Y/%m/%d')~/
|
|
)) vrentover2,
|
|
|
|
(select SUM(csc.`vrentover`)
|
|
from `contract_statis_car` csc
|
|
where csc.`contract_number` IN (select DISTINCT(rrp.`contract_number`)
|
|
from `report_rent_plan` rrp
|
|
where rrp.`batch_status` = '未完成'
|
|
and (rrp.over_days > 30 and rrp.over_days is not null )
|
|
/~startdate:and str_to_date(replace(left(rrp.PLAN_DATE, 10), '/', '-'), '%Y-%m-%d') <=
|
|
str_to_date('{startdate}', '%Y/%m/%d')~/)) vrentover30,
|
|
|
|
(select SUM(csc.`vrentover`)
|
|
from `contract_statis_car` csc
|
|
where csc.`contract_number` IN (select DISTINCT(rrp.`contract_number`)
|
|
from `report_rent_plan` rrp
|
|
where rrp.`batch_status` = '未完成'
|
|
and (rrp.over_days > 2 and rrp.over_days is not null )
|
|
/~startdate: and str_to_date(replace(left(rrp.PLAN_DATE, 10), '/', '-'), '%Y-%m-%d') <=
|
|
str_to_date('{startdate}', '%Y/%m/%d')~/))/
|
|
(select SUM(vrentover) from `contract_statis_car`) rate2,
|
|
(select SUM(csc.`vrentover`)
|
|
from `contract_statis_car` csc
|
|
where csc.`contract_number` IN (select DISTINCT(rrp.`contract_number`)
|
|
from `report_rent_plan` rrp
|
|
where rrp.`batch_status` = '未完成'
|
|
and (rrp.over_days > 30 and rrp.over_days is not null )
|
|
/~startdate:and str_to_date(replace(left(rrp.PLAN_DATE, 10), '/', '-'), '%Y-%m-%d') <=
|
|
str_to_date('{startdate}', '%Y/%m/%d')~/))/
|
|
(select SUM(vrentover) from `contract_statis_car`) rate30,
|
|
|
|
(select SUM(csc.`vrentover`)
|
|
from `contract_statis_car` csc
|
|
where csc.`contract_number` IN (select DISTINCT(rrp.`contract_number`)
|
|
from `report_rent_plan` rrp
|
|
where rrp.`batch_status` = '未完成'
|
|
/~startdate:and str_to_date(replace(left(rrp.PLAN_DATE, 10), '/', '-'), '%Y-%m-%d') <= str_to_date('{startdate}', '%Y/%m/%d')~/)) /
|
|
(select SUM(vrentover) from `contract_statis_car`) rateb,
|
|
sum(t.rents) / (select SUM(vrentover) from `contract_statis_car`) rates
|
|
from (
|
|
select
|
|
MAX(crp.`over_days`) days,
|
|
sum(crp.`rent`) rents
|
|
from apzl.report_rent_plan crp
|
|
INNER JOIN `lb_contract_info` bci on crp.`contract_number` = bci.`CONTRACT_NUMBER`
|
|
where bci.`BUSINESSTYPE` = '1'
|
|
and crp.`batch_status` = "未完成"
|
|
/~startdate: and str_to_date(replace(left(crp.PLAN_DATE, 10), '/', '-'), '%Y-%m-%d') <= str_to_date('{startdate}', '%Y/%m/%d') ~/
|
|
group by crp.`contract_number`
|
|
) t</sql>
|
|
<sqlParamValue>startdate|startdate|startdate|startdate|startdate|startdate|startdate</sqlParamValue>
|
|
<columns>
|
|
<column>
|
|
<id>2c9c81b97520309601754ac85e850055</id>
|
|
<name>rents</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater>#,##0.00</formater>
|
|
<label>逾期合同未还租金总额</label>
|
|
<enLabel>rents</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>2c9c81b97520309601754ac85e850059</id>
|
|
<name>count2</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>2+</label>
|
|
<enLabel>count2</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>2c9c81b97520309601754ac85e840054</id>
|
|
<name>count30</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>30+</label>
|
|
<enLabel>count30</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>2c9c81b97520309601754ac85e850058</id>
|
|
<name>count60</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>60+</label>
|
|
<enLabel>count60</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>2c9c81b97520309601754ac85e84004f</id>
|
|
<name>count90</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>90+</label>
|
|
<enLabel>count90</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>2c9c81b97520309601754ac85e84004e</id>
|
|
<name>vrentover</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>剩余租金总额</label>
|
|
<enLabel>vrentover</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>2c9c81b97520309601754ac85e840052</id>
|
|
<name>vrentoverleft</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>逾期合同的剩余租金</label>
|
|
<enLabel>vrentoverleft</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>2c9c81b97520309601754ac85e850057</id>
|
|
<name>vrentover2</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>2+逾期合同的剩余租金</label>
|
|
<enLabel>vrentover2</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>2c9c81b97520309601754ac85e850056</id>
|
|
<name>vrentover30</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>30+逾期合同的剩余租金</label>
|
|
<enLabel>vrentover30</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>2c9c81b97520309601754ac85e85005a</id>
|
|
<name>rate2</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>2+大口径逾期率</label>
|
|
<enLabel>rate2</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>2c9c81b97520309601754ac85e840053</id>
|
|
<name>rate30</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>30+大口径逾期率</label>
|
|
<enLabel>rate30</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>2c9c81b97520309601754ac85e840051</id>
|
|
<name>rateb</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>大口径逾期率</label>
|
|
<enLabel>rateb</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>2c9c81b97520309601754ac85e840050</id>
|
|
<name>rates</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>小口径逾期率</label>
|
|
<enLabel>rates</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>2c9c81b97520309601754a7f5c75002b</id>
|
|
<name>startdate</name>
|
|
<enname>startdate</enname>
|
|
<label>查询日期</label>
|
|
<filterType>FILTER</filterType>
|
|
<dbType>DATE</dbType>
|
|
<htmlType>DATE</htmlType>
|
|
<position>0</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>2c9c81b97520309601754a7c2bca001d</id>
|
|
<divHeight>0</divHeight>
|
|
<divWidth>0</divWidth>
|
|
<position>0</position>
|
|
<contentId>TABLE#2c9c81b97520309601754a7bf91d001c</contentId>
|
|
<report>2c9c81b97520309601754a7b6733001b</report>
|
|
<contentType>TABLE</contentType>
|
|
</layout>
|
|
</layouts>
|
|
</TenwaReport>
|