apzl_leasing/报表/汽车类报表一/零售业务放款周报统计表.xml
2020-10-23 13:26:40 +08:00

173 lines
6.9 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>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>