485 lines
20 KiB
XML
485 lines
20 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>ff8080817371053c0175daa8beeb0162</id>
|
|
<name>逾期客户信息表</name>
|
|
<enname>custom_overdue_info_report</enname>
|
|
<code>REPORT_CODE_1605691293281</code>
|
|
<isActived>true</isActived>
|
|
<position>33</position>
|
|
<reportType>REPORT</reportType>
|
|
<parentReport>2c9c81b7685efbbc016931c675a50006</parentReport>
|
|
<children/>
|
|
<layouts>
|
|
<layout>ff8080817371053c0175daabb5540164</layout>
|
|
</layouts>
|
|
</report>
|
|
</reports>
|
|
<tables>
|
|
<table>
|
|
<id>ff8080817371053c0175daaa88860163</id>
|
|
<name>逾期客户信息表</name>
|
|
<enname>custom_overdue_info_report</enname>
|
|
<reportDataSource>2c9023815726a036015726a496b00001</reportDataSource>
|
|
<queryType>COMPLEXSQL</queryType>
|
|
<sql>SELECT
|
|
distinct
|
|
rp.customer_name ,
|
|
rp.mobile ,
|
|
CONCAT(left(ci.certid,4),'**********',right(ci.certid,4)) AS certid,
|
|
cf.NAME ,
|
|
cf.tel,
|
|
cf.suname ,
|
|
cf.suphone ,
|
|
cf.workunit,
|
|
cp.EMERGENCY_CONTACT_PERSON ,
|
|
cp.EMERGENCY_CONTACT_TEL ,
|
|
cp.INTRO ,
|
|
cp.REMARK ,
|
|
lgb.FULLNAME1 ,
|
|
lgb.MOBILE1 ,
|
|
lgb.ADDRESS1 ,
|
|
lgb.FULLNAME2 ,
|
|
lgb.MOBILE2 ,
|
|
lgb.ADDRESS2
|
|
FROM
|
|
(
|
|
SELECT DISTINCT
|
|
rrp.contract_number,
|
|
rrp.customer_name,
|
|
rrp.mobile
|
|
FROM
|
|
report_rent_plan rrp
|
|
WHERE
|
|
over_days > 3
|
|
AND collect_status <> '代偿'
|
|
and batch_status='未完成'
|
|
and str_to_date(replace(left(rrp.PLAN_DATE, 10), '/', '-'), '%Y-%m-%d') <=NOW()
|
|
GROUP BY
|
|
rrp.contract_number
|
|
) rp
|
|
LEFT JOIN lb_contract_info lci ON rp.contract_number = lci.contract_no
|
|
LEFT JOIN lb_union_lessee lul ON lci.id = lul.contract_id
|
|
LEFT JOIN customer_info ci ON ci.customerid = lul.customer_id
|
|
LEFT JOIN CUSTOMER_PERSON cp ON cp.customerid = ci.customerid
|
|
LEFT JOIN customer_family cf ON ci.customerid = cf.customerid
|
|
AND cf.partner_ = 'Y'
|
|
AND cf.STATUS = 'valid'
|
|
AND lci.id = cf.contract_id
|
|
LEFT JOIN (
|
|
SELECT
|
|
contract_id,
|
|
MAX( CASE rank WHEN '1' THEN FULLNAME END ) FULLNAME1,
|
|
MAX( CASE rank WHEN '1' THEN MOBILE END ) MOBILE1,
|
|
MAX( CASE rank WHEN '1' THEN ADDRESS END ) ADDRESS1,
|
|
MAX( CASE rank WHEN '2' THEN FULLNAME END ) FULLNAME2,
|
|
MAX( CASE rank WHEN '2' THEN MOBILE END ) MOBILE2,
|
|
MAX( CASE rank WHEN '2' THEN ADDRESS END ) ADDRESS2
|
|
FROM
|
|
(
|
|
SELECT
|
|
a.*,
|
|
count( 1 ) AS rank
|
|
FROM
|
|
LB_GUARANTEE_UNIT a
|
|
LEFT JOIN LB_GUARANTEE_UNIT b ON a.contract_id = b.contract_id
|
|
AND a.FULLNAME <= b.FULLNAME
|
|
GROUP BY
|
|
a.contract_id,
|
|
a.FULLNAME
|
|
ORDER BY
|
|
a.contract_id,
|
|
a.FULLNAME DESC
|
|
) t
|
|
GROUP BY
|
|
contract_id
|
|
) lgb ON lci.id = lgb.contract_id
|
|
</sql>
|
|
<sqlParamValue></sqlParamValue>
|
|
<columns>
|
|
<column>
|
|
<id>ff8080817371053c0175f39343590197</id>
|
|
<name>customer_name</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>申请人姓名</label>
|
|
<enLabel>customer_name</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>ff8080817371053c0175f39343590196</id>
|
|
<name>mobile</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>申请人电话</label>
|
|
<enLabel>mobile</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>ff8080817371053c0175f3934359018d</id>
|
|
<name>certid</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>身份证号</label>
|
|
<enLabel>certid</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>ff8080817371053c0175f3934359018e</id>
|
|
<name>NAME</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>共同申请人姓名</label>
|
|
<enLabel>NAME</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>ff8080817371053c0175f3934359019a</id>
|
|
<name>tel</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>共同申请人电话</label>
|
|
<enLabel>tel</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>ff8080817371053c0175f393433e018b</id>
|
|
<name>suname</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>共同申请人单位</label>
|
|
<enLabel>suname</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>ff8080817371053c0175f3934359018f</id>
|
|
<name>suphone</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>共同申请人单位电话</label>
|
|
<enLabel>suphone</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>ff8080817371053c0175f3934359019b</id>
|
|
<name>workunit</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>共同申请人地址</label>
|
|
<enLabel>workunit</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>ff8080817371053c0175f39343590192</id>
|
|
<name>EMERGENCY_CONTACT_PERSON</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>紧急联系人1姓名</label>
|
|
<enLabel>EMERGENCY_CONTACT_PERSON</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>ff8080817371053c0175f39343590193</id>
|
|
<name>EMERGENCY_CONTACT_TEL</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>紧急联系人1电话</label>
|
|
<enLabel>EMERGENCY_CONTACT_TEL</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>ff8080817371053c0175f3934359019c</id>
|
|
<name>INTRO</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>紧急联系人2姓名</label>
|
|
<enLabel>INTRO</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>ff8080817371053c0175f39343590198</id>
|
|
<name>REMARK</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>紧急联系人2电话</label>
|
|
<enLabel>REMARK</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>ff8080817371053c0175f39343590199</id>
|
|
<name>FULLNAME1</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>担保人1姓名</label>
|
|
<enLabel>FULLNAME1</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>ff8080817371053c0175f39343590190</id>
|
|
<name>MOBILE1</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>担保人1电话</label>
|
|
<enLabel>MOBILE1</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>ff8080817371053c0175f3934359018c</id>
|
|
<name>ADDRESS1</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>担保人1地址</label>
|
|
<enLabel>ADDRESS1</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>ff8080817371053c0175f39343590194</id>
|
|
<name>FULLNAME2</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>担保人2姓名</label>
|
|
<enLabel>FULLNAME2</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>ff8080817371053c0175f39343590191</id>
|
|
<name>MOBILE2</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>担保人2电话</label>
|
|
<enLabel>MOBILE2</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>ff8080817371053c0175f39343590195</id>
|
|
<name>ADDRESS2</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>担保人2地址</label>
|
|
<enLabel>ADDRESS2</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/>
|
|
<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>ff8080817371053c0175daabb5540164</id>
|
|
<divHeight>0</divHeight>
|
|
<divWidth>0</divWidth>
|
|
<position>0</position>
|
|
<contentId>TABLE#ff8080817371053c0175daaa88860163</contentId>
|
|
<report>ff8080817371053c0175daa8beeb0162</report>
|
|
<contentType>TABLE</contentType>
|
|
</layout>
|
|
</layouts>
|
|
</TenwaReport>
|