apzl_leasing/报表/汽车类报表二/业务申请手机号重复查询.xml
2019-12-24 15:17:14 +08:00

208 lines
9.7 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>2c9c81b566f14fbe0167439be6cd0010</id>
<name>业务申请手机号重复查询</name>
<enname>Businessapplication</enname>
<code>REPORT_CODE_1543027549901</code>
<isActived>true</isActived>
<position>36</position>
<reportType>REPORT</reportType>
<parentReport>2c9c81b7685efbbc016931c6eff50007</parentReport>
<children/>
<layouts>
<layout>2c9c81b566f14fbe016743b8dce20019</layout>
</layouts>
</report>
</reports>
<tables>
<table>
<id>2c9c81b566f14fbe0167439f78710011</id>
<name>业务申请手机号重复查询</name>
<enname>Business_application</enname>
<reportDataSource>2c9023815726a036015726a496b00001</reportDataSource>
<queryType>COMPLEXSQL</queryType>
<sql>SELECT lpi.PROJECT_NO,
t.customerid AS customerid,t.phone AS phone,t.phonename AS phonename,lul.CUSTOMER_NAME
FROM lb_project_info_temp lpi
LEFT JOIN lb_union_lessee_temp lul ON lpi.id=lul.PROJECT_ID
LEFT JOIN
(
(SELECT cp.customerid AS customerid,cp.MOBILE AS phone,cp.fullname AS phonename FROM customer_person_temp cp LEFT JOIN FLOW_OBJECT fo ON cp.flowunid=fo.objectno WHERE ((fo.flowno='BusinessApplyFlow' AND fo.phaseno&lt;&gt; '0010' AND fo.phaseno&lt;&gt; '0020') OR fo.flowno&lt;&gt;'BusinessApplyFlow'))
UNION ALL
(SELECT cf.customerid AS customerid,cf.tel AS phone,cf.name AS phonename FROM customer_family_temp cf LEFT JOIN FLOW_OBJECT fo ON cf.flowunid=fo.objectno WHERE ((fo.flowno='BusinessApplyFlow' AND fo.phaseno&lt;&gt; '0010' AND fo.phaseno&lt;&gt; '0020') OR fo.flowno&lt;&gt;'BusinessApplyFlow'))
UNION ALL
(SELECT lul.customer_id AS customerid,lgu.MOBILE AS phone,lgu.fullname AS phonename FROM lb_guarantee_unit_temp lgu
LEFT JOIN lb_union_lessee_temp lul ON lul.project_id=lgu.project_id LEFT JOIN FLOW_OBJECT fo ON lgu.flowunid=fo.objectno
WHERE lgu.MOBILE IS NOT NULL AND lgu.MOBILE &lt;&gt; '' AND ((fo.flowno='BusinessApplyFlow' AND fo.phaseno&lt;&gt; '0010' AND fo.phaseno&lt;&gt; '0020') OR fo.flowno&lt;&gt;'BusinessApplyFlow'))
UNION ALL
(SELECT cp1.customerid AS customerid,cp1.EMERGENCY_CONTACT_TEL AS phone,cp1.emergency_contact_person AS phonename FROM customer_person_temp cp1 LEFT JOIN FLOW_OBJECT fo ON cp1.flowunid=fo.objectno WHERE ((fo.flowno='BusinessApplyFlow' AND fo.phaseno&lt;&gt; '0010' AND fo.phaseno&lt;&gt; '0020') OR fo.flowno&lt;&gt;'BusinessApplyFlow'))
UNION ALL
(SELECT cp2.customerid AS customerid,cp2.REMARK AS phone,cp2.INTRO AS phonename FROM customer_person_temp cp2 LEFT JOIN FLOW_OBJECT fo ON cp2.flowunid=fo.objectno WHERE ((fo.flowno='BusinessApplyFlow' AND fo.phaseno&lt;&gt; '0010' AND fo.phaseno&lt;&gt; '0020') OR fo.flowno&lt;&gt;'BusinessApplyFlow'))
) t ON lul.customer_id=t.customerid
WHERE t.phone IS NOT NULL
AND lpi.businesstype='1'
GROUP BY t.customerid,t.phonename,t.phone,lpi.PROJECT_NO
ORDER BY t.phone</sql>
<sqlParamValue></sqlParamValue>
<columns>
<column>
<id>2c9c81b56753d5c1016796e3547d0053</id>
<name>PROJECT_NO</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>业务单号</label>
<enLabel>PROJECT_NO</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>2c9c81b56753d5c1016796e3547d0054</id>
<name>phonename</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>联系人</label>
<enLabel>phonename</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>2c9c81b566f14fbe016743a41e1e0014</id>
<name>phone</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>手机号</label>
<enLabel>phone</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>2c9c81b566f14fbe016743a41e1e0015</id>
<name>customerid</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>客户id</label>
<enLabel>customerid</enLabel>
<width>100</width>
<position>8</position>
<isVisible>false</isVisible>
<color></color>
<isCountTotal>false</isCountTotal>
<isCountSubTotal>false</isCountSubTotal>
<isGroupby>false</isGroupby>
<isMerge>false</isMerge>
<action></action>
<actionParamters></actionParamters>
<actionCondition></actionCondition>
</column>
<column>
<id>2c9c81b56753d5c10167c964393b007a</id>
<name>CUSTOMER_NAME</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>承租人</label>
<enLabel>CUSTOMER_NAME</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>
</columns>
<controls/>
<searchs/>
<searchExpress></searchExpress>
<filters>
<filter>
<id>2c9c81b56753d5c1016796e509af0055</id>
<name>PROJECT_NO</name>
<enname>PROJECT_NO</enname>
<label>业务单号</label>
<filterType>FILTER</filterType>
<dbType>STRING</dbType>
<htmlType>TEXT</htmlType>
<position>1</position>
</filter>
<filter>
<id>2c9c81b566f14fbe016743b7a9f40018</id>
<name>phone</name>
<enname>phone</enname>
<label>手机号</label>
<filterType>FILTER</filterType>
<dbType>STRING</dbType>
<htmlType>TEXT</htmlType>
<position>2</position>
</filter>
</filters>
<filterExpress></filterExpress>
<pageSize>20</pageSize>
<showRowNumber>false</showRowNumber>
<showTotalTitle>false</showTotalTitle>
<isScale>true</isScale>
<isCache>false</isCache>
<isExcel>false</isExcel>
</table>
</tables>
<charts/>
<pages/>
<layouts>
<layout>
<id>2c9c81b566f14fbe016743b8dce20019</id>
<divHeight>0</divHeight>
<divWidth>0</divWidth>
<position>0</position>
<contentId>TABLE#2c9c81b566f14fbe0167439f78710011</contentId>
<report>2c9c81b566f14fbe0167439be6cd0010</report>
<contentType>TABLE</contentType>
</layout>
</layouts>
</TenwaReport>