fix:李正五张报表xml配置20201022

This commit is contained in:
maliang 2020-10-23 13:26:40 +08:00
parent abfc7567c4
commit 4f6debf630
5 changed files with 2445 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,494 @@
<?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>2c9c81b97520309601754a801cbf002c</id>
<name>按期还款率表</name>
<enname>ontime_rate_report</enname>
<code>REPORT_CODE_1603272711359</code>
<isActived>true</isActived>
<position>31</position>
<reportType>REPORT</reportType>
<parentReport>2c9c81b7685efbbc016931c675a50006</parentReport>
<children/>
<layouts>
<layout>2c9c81b97520309601754a80d269002e</layout>
</layouts>
</report>
</reports>
<tables>
<table>
<id>2c9c81b97520309601754a80a04a002d</id>
<name>按期还款率表</name>
<enname>ontime_rate_report</enname>
<reportDataSource>2c9023815726a036015726a496b00001</reportDataSource>
<queryType>COMPLEXSQL</queryType>
<sql>select left(crp.PLAN_DATE, 7) plan_month,
sum(case
when crp.`batch_status` = '完成' and crp.`fact_penalty` = '0' and
crp.`collect_status` in ('网银收款', '批量收款', '微信')
then crp.RENT
ELSE 0 END) normal_pay,
count(case
when crp.`batch_status` = '完成' and crp.`fact_penalty` = '0' and
crp.`collect_status` in ('网银收款', '批量收款', '微信')
then 1
ELSE null END) normal_count,
sum(case
when crp.`batch_status` = '完成' and crp.`fact_penalty` = '0' and
crp.`collect_status` in ('网银收款', '批量收款', '微信')
then crp.RENT
ELSE 0 END) / SUM(case
when crp.COLLECT_STATUS in ('提前结清')
then 0
ELSE crp.RENT END) normal_rate,
sum(case
when crp.`batch_status` = '完成' and (crp.`collect_status` = '代偿' or crp.`fact_penalty` &lt;&gt; '0')
then crp.RENT
ELSE 0 END) delay_pay,
count(case
when crp.`batch_status` = '完成' and (crp.`collect_status` = '代偿' or crp.`fact_penalty` &lt;&gt; '0')
then 1
ELSE null END) delay_count,
sum(case
when crp.`batch_status` = '完成' and (crp.`collect_status` = '代偿' or crp.`fact_penalty` &lt;&gt; '0')
then crp.RENT
ELSE 0 END) / SUM(case
when crp.COLLECT_STATUS in ('提前结清')
then 0
ELSE crp.RENT END) delay_rate,
sum(case
when crp.COLLECT_STATUS in ('提前结清')
then crp.RENT
ELSE 0 END) prepayment_pay,
count(distinct (case
when crp.COLLECT_STATUS in ('提前结清')
then crp.`contract_number`
ELSE null END)) prepayment_count,
sum(case
when crp.`batch_status` = '完成'
then crp.RENT
ELSE 0 END) rent,
count(case
when crp.`batch_status` = '完成'
then 1
ELSE null END) pay_count,
sum(case
when crp.`batch_status` = '未完成'
then crp.RENT
ELSE 0 END) overdue_rent,
count(case
when crp.`batch_status` = '未完成'
then 1
ELSE null END) overdue_count,
sum(case when crp.`batch_status` = '未完成' then crp.RENT ELSE 0 END) /
SUM(case when crp.COLLECT_STATUS in ('提前结清') then 0 ELSE crp.RENT END) overdue_rate,
SUM(case when crp.COLLECT_STATUS in ('提前结清') then 0 ELSE crp.RENT END) balance_pay,
COUNT(case when crp.COLLECT_STATUS in ('提前结清') then null ELSE 1 END) balance_count,
(select COUNT(*) from `contract_statis_car` csc where csc.`vrentover` &gt; 0) left_count,
(SELECT count(*) FROM lb_contract_info WHERE contract_status='100' AND businesstype='1') pre_count
from apzl.report_rent_plan crp
left join code_library cl on cl.codeno = 'charge_way' and cl.itemno = crp.collect_msg
LEFT JOIN `lb_contract_info` bci on crp.`contract_number` = bci.`CONTRACT_NUMBER`
where bci.`BUSINESSTYPE` = '1'
/~startdate:and STR_TO_DATE(REPLACE(LEFT(crp.PLAN_DATE, 10), '/', '-'), '%Y-%m-%d') &lt;=
STR_TO_DATE('{startdate}', '%Y/%m/%d') ~/
group by left(crp.PLAN_DATE, 7)
order by 1 asc</sql>
<sqlParamValue>startdate</sqlParamValue>
<columns>
<column>
<id>2c9c81b97520309601754a81f3fb0039</id>
<name>plan_month</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>计划收款月份</label>
<enLabel>plan_month</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>2c9c81b97520309601754a81f3fc003b</id>
<name>normal_pay</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.00</formater>
<label>正常还款金额</label>
<enLabel>normal_pay</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>2c9c81b97520309601754a81f3fc003e</id>
<name>normal_count</name>
<columnDataType>NUMBER</columnDataType>
<formater></formater>
<label>正常还款数量</label>
<enLabel>normal_count</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>2c9c81b97520309601754a81f3fb002f</id>
<name>normal_rate</name>
<columnDataType>NUMBER</columnDataType>
<formater></formater>
<label>按期还款率</label>
<enLabel>normal_rate</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>2c9c81b97520309601754a81f3fb0031</id>
<name>delay_pay</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.00</formater>
<label>延期还款金额</label>
<enLabel>delay_pay</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>2c9c81b97520309601754a81f3fb0032</id>
<name>delay_count</name>
<columnDataType>NUMBER</columnDataType>
<formater></formater>
<label>延期还款数量</label>
<enLabel>delay_count</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>2c9c81b97520309601754a81f3fc003f</id>
<name>delay_rate</name>
<columnDataType>NUMBER</columnDataType>
<formater></formater>
<label>延期还款率</label>
<enLabel>delay_rate</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>2c9c81b97520309601754a81f3fc003c</id>
<name>prepayment_pay</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.00</formater>
<label>提前结清金额</label>
<enLabel>prepayment_pay</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>
<column>
<id>2c9c81b97520309601754a81f3fb0033</id>
<name>prepayment_count</name>
<columnDataType>NUMBER</columnDataType>
<formater></formater>
<label>提前结清数量</label>
<enLabel>prepayment_count</enLabel>
<width>100</width>
<position>26</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>2c9c81b97520309601754a81f3fb0038</id>
<name>rent</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.00</formater>
<label>还款合计金额</label>
<enLabel>rent</enLabel>
<width>100</width>
<position>27</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>2c9c81b97520309601754a81f3fc003d</id>
<name>pay_count</name>
<columnDataType>NUMBER</columnDataType>
<formater></formater>
<label>还款合计单数</label>
<enLabel>pay_count</enLabel>
<width>100</width>
<position>28</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>2c9c81b97520309601754a81f3fb0034</id>
<name>overdue_rent</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.00</formater>
<label>逾期未还金额</label>
<enLabel>overdue_rent</enLabel>
<width>100</width>
<position>29</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>2c9c81b97520309601754a81f3fb0035</id>
<name>overdue_count</name>
<columnDataType>NUMBER</columnDataType>
<formater></formater>
<label>逾期未还数量</label>
<enLabel>overdue_count</enLabel>
<width>100</width>
<position>30</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>2c9c81b97520309601754a81f3fb0036</id>
<name>overdue_rate</name>
<columnDataType>NUMBER</columnDataType>
<formater></formater>
<label>逾期未还占比</label>
<enLabel>overdue_rate</enLabel>
<width>100</width>
<position>31</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>2c9c81b97520309601754a81f3fc003a</id>
<name>balance_pay</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.00</formater>
<label>应还总额</label>
<enLabel>balance_pay</enLabel>
<width>100</width>
<position>32</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>2c9c81b97520309601754a81f3fb0030</id>
<name>balance_count</name>
<columnDataType>NUMBER</columnDataType>
<formater></formater>
<label>应还总单数</label>
<enLabel>balance_count</enLabel>
<width>100</width>
<position>33</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>2c9c81b97520309601754a81f3fb0037</id>
<name>left_count</name>
<columnDataType>NUMBER</columnDataType>
<formater></formater>
<label>存量合同数量</label>
<enLabel>left_count</enLabel>
<width>100</width>
<position>34</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>2c9c81b97520309601754a81f3fc0040</id>
<name>pre_count</name>
<columnDataType>NUMBER</columnDataType>
<formater></formater>
<label>提前结清合同数量</label>
<enLabel>pre_count</enLabel>
<width>100</width>
<position>35</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>2c9c81b97520309601754a864d100041</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>2c9c81b97520309601754a80d269002e</id>
<divHeight>0</divHeight>
<divWidth>0</divWidth>
<position>0</position>
<contentId>TABLE#2c9c81b97520309601754a80a04a002d</contentId>
<report>2c9c81b97520309601754a801cbf002c</report>
<contentType>TABLE</contentType>
</layout>
</layouts>
</TenwaReport>

View File

@ -0,0 +1,259 @@
<?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>2c9c81b97520309601754a8707d10042</id>
<name>经销商月度资金统计表</name>
<enname>supplier_fund_month_report</enname>
<code>REPORT_CODE_1603273164753</code>
<isActived>true</isActived>
<position>32</position>
<reportType>REPORT</reportType>
<parentReport>2c9c81b7685efbbc016931c675a50006</parentReport>
<children/>
<layouts>
<layout>2c9c81b97520309601754a87e2070044</layout>
</layouts>
</report>
</reports>
<tables>
<table>
<id>2c9c81b97520309601754a87a5960043</id>
<name>经销商月度资金统计表</name>
<enname>supplier_fund_month_report</enname>
<reportDataSource>2c9023815726a036015726a496b00001</reportDataSource>
<queryType>COMPLEXSQL</queryType>
<sql>select t1.orgname ,
t1.svrentover ,
t2.cc ,
t2.srent ,
t2.soverrent ,
t3.rents ,
t3.cover
from (SELECT sum(csc.`vrentover`) svrentover,
csc.`orgname`
FROM `contract_statis_car` csc
GROUP BY csc.`orgname`) t1
left join
(select left(rrp.plan_date, 7),
rrp.distributor_name,
COUNT(case when rrp.COLLECT_STATUS in ('提前结清') then null ELSE 1 END) cc,
SUM(case when rrp.COLLECT_STATUS in ('提前结清') then 0 ELSE rrp.`rent` END) srent,
sum(case when rrp.batch_status = '未完成' then rrp.RENT ELSE 0 END) soverrent
from report_rent_plan rrp
left join code_library cl on cl.codeno = 'charge_way' and cl.itemno = rrp.collect_msg
LEFT JOIN lb_contract_info bci on rrp.contract_number = bci.CONTRACT_NUMBER
where bci.BUSINESSTYPE = '1'
/~startdate:and str_to_date(replace(left(rrp.PLAN_DATE, 10), '/', '-'), '%Y-%m-%d') &gt;= str_to_date('{startdate}', '%Y/%m/%d')~/
/~enddate:and str_to_date(replace(left(rrp.PLAN_DATE, 10), '/', '-'), '%Y-%m-%d') &lt;= str_to_date('{enddate}', '%Y/%m/%d')~/
group by rrp.distributor_name) t2 on t1.orgname = t2.distributor_name
left join
(select sum(rrp.`rent`) rents,
COUNT(DISTINCT (rrp.`contract_number`)) cover,
rrp.`distributor_name`
from report_rent_plan rrp
left join code_library cl on cl.codeno = 'charge_way' and cl.itemno = rrp.collect_msg
LEFT JOIN lb_contract_info bci on rrp.contract_number = bci.CONTRACT_NUMBER
where bci.BUSINESSTYPE = '1'
and rrp.`batch_status` = "未完成"
/~enddate:and str_to_date(replace(left(rrp.PLAN_DATE, 10), '/', '-'), '%Y-%m-%d') &lt;= str_to_date('{enddate}', '%Y/%m/%d')~/
group by rrp.`distributor_name`
HAVING MAX(rrp.`over_days`) &gt;= 0) t3 on t1.orgname = t3.distributor_name</sql>
<sqlParamValue>startdate|enddate|enddate</sqlParamValue>
<columns>
<column>
<id>2c9c81b97520309601754a882710004a</id>
<name>orgname</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>渠道</label>
<enLabel>orgname</enLabel>
<width>100</width>
<position>7</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>2c9c81b97520309601754a882710004b</id>
<name>svrentover</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.00</formater>
<label>剩余租金</label>
<enLabel>svrentover</enLabel>
<width>100</width>
<position>8</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>2c9c81b97520309601754a8827100048</id>
<name>cc</name>
<columnDataType>NUMBER</columnDataType>
<formater></formater>
<label>应收单数</label>
<enLabel>cc</enLabel>
<width>100</width>
<position>9</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>2c9c81b97520309601754a8827100045</id>
<name>srent</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.00</formater>
<label>当期应收金额</label>
<enLabel>srent</enLabel>
<width>100</width>
<position>10</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>2c9c81b97520309601754a8827100049</id>
<name>soverrent</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.00</formater>
<label>当月逾期金额</label>
<enLabel>soverrent</enLabel>
<width>100</width>
<position>11</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>2c9c81b97520309601754a8827100047</id>
<name>rents</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.00</formater>
<label>存量逾期租金</label>
<enLabel>rents</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>2c9c81b97520309601754a8827100046</id>
<name>cover</name>
<columnDataType>NUMBER</columnDataType>
<formater></formater>
<label>存量逾期合同数</label>
<enLabel>cover</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>
</columns>
<controls/>
<searchs/>
<searchExpress></searchExpress>
<filters>
<filter>
<id>2c9c81b97520309601754a8a6ae8004c</id>
<name>startdate</name>
<enname>startdate</enname>
<label>开始日期</label>
<filterType>FILTER</filterType>
<dbType>DATE</dbType>
<htmlType>DATE</htmlType>
<position>0</position>
</filter>
<filter>
<id>2c9c81b97520309601754a8a6ae8004d</id>
<name>enddate</name>
<enname>enddate</enname>
<label>结束日期</label>
<filterType>FILTER</filterType>
<dbType>DATE</dbType>
<htmlType>DATE</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>2c9c81b97520309601754a87e2070044</id>
<divHeight>0</divHeight>
<divWidth>0</divWidth>
<position>0</position>
<contentId>TABLE#2c9c81b97520309601754a87a5960043</contentId>
<report>2c9c81b97520309601754a8707d10042</report>
<contentType>TABLE</contentType>
</layout>
</layouts>
</TenwaReport>

View File

@ -0,0 +1,397 @@
<?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 &gt;= 3 then 1 ELSE null END) count2,
count(case when t.days &gt;= 30 then 1 ELSE null END) count30,
count(case when t.days &gt;= 60 then 1 ELSE null END) count60,
count(case when t.days &gt;= 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') &lt;= 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 &gt; 2 and rrp.over_days is not null )
/~startdate: and str_to_date(replace(left(rrp.PLAN_DATE, 10), '/', '-'), '%Y-%m-%d') &lt;= 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 &gt; 30 and rrp.over_days is not null )
/~startdate:and str_to_date(replace(left(rrp.PLAN_DATE, 10), '/', '-'), '%Y-%m-%d') &lt;=
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 &gt; 2 and rrp.over_days is not null )
/~startdate: and str_to_date(replace(left(rrp.PLAN_DATE, 10), '/', '-'), '%Y-%m-%d') &lt;=
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 &gt; 30 and rrp.over_days is not null )
/~startdate:and str_to_date(replace(left(rrp.PLAN_DATE, 10), '/', '-'), '%Y-%m-%d') &lt;=
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') &lt;= 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') &lt;= 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>

View File

@ -0,0 +1,172 @@
<?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>2c9c81b97520309601754a77d1d90013</id>
<name>零售业务放款周报统计表</name>
<enname>loan_week_report</enname>
<code>REPORT_CODE_1603272167897</code>
<isActived>true</isActived>
<position>29</position>
<reportType>REPORT</reportType>
<parentReport>2c9c81b7685efbbc016931c675a50006</parentReport>
<children/>
<layouts>
<layout>2c9c81b97520309601754a7afae9001a</layout>
</layouts>
</report>
</reports>
<tables>
<table>
<id>2c9c81b97520309601754a78759d0014</id>
<name>零售业务放款周报统计表</name>
<enname>loan_week_report</enname>
<reportDataSource>2c9023815726a036015726a496b00001</reportDataSource>
<queryType>COMPLEXSQL</queryType>
<sql>SELECT
di1.DISTRIBUTOR_NAME ,
di2.htsl,
di2.rzje
FROM
distributor_info di1
LEFT JOIN (
SELECT
count( LCI.CONTRACT_NUMBER ) htsl,
sum( IFNULL( LCCT.CLEAN_LEASE_MONEY, 0 ) ) rzje,
DI.DISTRIBUTOR_NAME
FROM
LC_CALC_CONDITION LCCT
LEFT JOIN LB_CONTRACT_INFO LCI ON LCI.ID = LCCT.CONTRACT_ID
LEFT JOIN DISTRIBUTOR_INFO DI ON DI.DISTRIBUTOR_NO = LCI.DISTRIBUTOR_ID
LEFT JOIN LB_UNION_LESSEE LUL ON LUL.CONTRACT_ID = LCI.ID
WHERE
LUL.IS_MAIN = 'Y'
AND ( LCI.CONTRACT_STATUS BETWEEN 31 AND 100 OR LCI.CONTRACT_STATUS = '103' OR LCI.CONTRACT_STATUS = '105' )
AND lci.businesstype = '1'
/~startdate:and str_to_date(replace(left(LCCT.START_DATE, 10), '/', '-'), '%Y-%m-%d') &gt;= str_to_date('{startdate}', '%Y/%m/%d')~/
/~enddate:and str_to_date(replace(left(LCCT.START_DATE, 10), '/', '-'), '%Y-%m-%d') &lt;= str_to_date('{enddate}', '%Y/%m/%d')~/
GROUP BY
DI.DISTRIBUTOR_NAME
) di2 ON di1.DISTRIBUTOR_NAME = di2.DISTRIBUTOR_NAME </sql>
<sqlParamValue>startdate|enddate</sqlParamValue>
<columns>
<column>
<id>2c9c81b97520309601754a78be520015</id>
<name>DISTRIBUTOR_NAME</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>经销商</label>
<enLabel>DISTRIBUTOR_NAME</enLabel>
<width>100</width>
<position>3</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>2c9c81b97520309601754a78be530016</id>
<name>htsl</name>
<columnDataType>NUMBER</columnDataType>
<formater></formater>
<label>合同数量</label>
<enLabel>htsl</enLabel>
<width>100</width>
<position>4</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>2c9c81b97520309601754a78be530017</id>
<name>rzje</name>
<columnDataType>NUMBER</columnDataType>
<formater>#,##0.00</formater>
<label>融资金额</label>
<enLabel>rzje</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>
</columns>
<controls/>
<searchs/>
<searchExpress></searchExpress>
<filters>
<filter>
<id>2c9c81b97520309601754a79d1d10018</id>
<name>startdate</name>
<enname>startdate</enname>
<label>起始日期</label>
<filterType>FILTER</filterType>
<dbType>DATE</dbType>
<htmlType>DATE</htmlType>
<position>0</position>
</filter>
<filter>
<id>2c9c81b97520309601754a7a44150019</id>
<name>enddate</name>
<enname>enddate</enname>
<label>结束日期</label>
<filterType>FILTER</filterType>
<dbType>DATE</dbType>
<htmlType>DATE</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>2c9c81b97520309601754a7afae9001a</id>
<divHeight>0</divHeight>
<divWidth>0</divWidth>
<position>0</position>
<contentId>TABLE#2c9c81b97520309601754a78759d0014</contentId>
<report>2c9c81b97520309601754a77d1d90013</report>
<contentType>TABLE</contentType>
</layout>
</layouts>
</TenwaReport>