apzl_leasing/报表/北汽财务报表/结清数据表.xml
2020-09-27 19:35:49 +08:00

377 lines
16 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>2c9c81b5687ebb7e016a6c069fda04c7</id>
<name>结清数据表</name>
<enname>ClearingData</enname>
<code>REPORT_CODE_1557209559967</code>
<isActived>true</isActived>
<position>37</position>
<reportType>REPORT</reportType>
<parentReport>2c9c81b7685efbbc016931cf8bf0000d</parentReport>
<children/>
<layouts>
<layout>2c9c81b5687ebb7e016a6c069fdc04d8</layout>
</layouts>
</report>
</reports>
<tables>
<table>
<id>2c9c81b5687ebb7e01696a97ebea0158</id>
<name>渠道商结清数据报表</name>
<enname>ClearingData</enname>
<reportDataSource>2c9023815726a036015726a496b00001</reportDataSource>
<queryType>COMPLEXSQL</queryType>
<sql>SELECT
lri.hire_date,
o.contract_no,
CASE ci.customertype
WHEN '01' THEN cc.enterprisename
WHEN '03' THEN cp.FULLNAME
END AS FULLNAME,
CASE ci.customertype
WHEN '01' THEN cc.certid
WHEN '03' THEN cp.CERTID
END AS CERTID,
lec.FRAME_NUMBER,
lec.ENGINE_NUMBER,
lec.LICENSE_PLATE_NUMBER,
di.distributor_name,
SUBSTRING(clcj.itemname,CHARACTER_LENGTH(clsz.itemname) + 1) jzll,
di.LOCATION,
lpi.inputName,
lpi.inputTel
FROM
LB_CONTRACT_INFO o
LEFT JOIN lb_union_lessee lul ON o.PROJECT_ID = lul.PROJECT_ID
LEFT JOIN customer_info ci ON ci.CUSTOMERID = lul.CUSTOMER_ID
LEFT JOIN CUSTOMER_PERSON cp ON cp.CUSTOMERID = lul.CUSTOMER_ID
LEFT JOIN customer_company cc ON cc.CUSTOMERID = lul.CUSTOMER_ID
LEFT JOIN LB_EQUIPMENT_CAR lec ON o.id = lec.contract_id and lec.car_attribute='head'
LEFT JOIN lb_project_info lpi ON o.PROJECT_ID = lpi.id
LEFT JOIN distributor_info di ON di.distributor_no = lpi.distributor_id
left join (SELECT contract_id,MAX(hire_date) hire_date FROM lc_rent_income GROUP BY contract_id) lri on lri.contract_id= o.id
LEFT JOIN code_library clsz ON clsz.sortno = LEFT(di.DISTRIBUTOR_ADDRESS, 2) AND clsz.CodeNO = 'AreaCode'
LEFT JOIN code_library clcj ON clcj.sortno = LEFT(di.DISTRIBUTOR_ADDRESS, 4) AND clcj.CodeNO = 'AreaCode'
WHERE
(lpi.project_manage IN (SELECT userid FROM user_info WHERE belongorg = (SELECT belongorg FROM user_info WHERE userid = '{_TENWA_USERID}')) OR '{_TENWA_USERID}' IN
(SELECT userid FROM user_info WHERE belongorg = (SELECT belongorg FROM user_info WHERE userid = 'administrator')))
AND (
o.CONTRACT_STATUS = '100'
OR o.CONTRACT_STATUS = '105'
) </sql>
<sqlParamValue>_TENWA_USERID|_TENWA_USERID</sqlParamValue>
<columns>
<column>
<id>2c9c81b5687ebb7e016a6c083e7304e4</id>
<name>hire_date</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>合同到期日</label>
<enLabel>hire_date</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>2c9c81b5687ebb7e016a6c083e7304e2</id>
<name>contract_no</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>合同号码</label>
<enLabel>contract_no</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>2c9c81b5687ebb7e016a6c083e7304e0</id>
<name>FULLNAME</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>客户姓名</label>
<enLabel>FULLNAME</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>2c9c81b5687ebb7e016a6c083e7304db</id>
<name>CERTID</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>证件号码</label>
<enLabel>CERTID</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>2c9c81b5687ebb7e016a6c083e7304dc</id>
<name>FRAME_NUMBER</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>车架号码</label>
<enLabel>FRAME_NUMBER</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>2c9c81b5687ebb7e016a6c083e7304df</id>
<name>ENGINE_NUMBER</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>发动机号码</label>
<enLabel>ENGINE_NUMBER</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>2c9c81b5687ebb7e016a6c083e7304dd</id>
<name>LICENSE_PLATE_NUMBER</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>车牌号码</label>
<enLabel>LICENSE_PLATE_NUMBER</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>2c9c81b5687ebb7e016a6c083e7304de</id>
<name>distributor_name</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>经销商名称</label>
<enLabel>distributor_name</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>2c9c81b56b88d5af016bfea2b3e0002d</id>
<name>jzll</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>地址</label>
<enLabel>jzll</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>2c9c81b5687ebb7e016a6c083e7304e1</id>
<name>LOCATION</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>地址</label>
<enLabel>LOCATION</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>2c9c81b5687ebb7e016a6c083e7304e3</id>
<name>inputName</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>金融专员</label>
<enLabel>inputName</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>2c9c81b5687ebb7e016a6c083e7304da</id>
<name>inputTel</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>金融专员电话</label>
<enLabel>inputTel</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>
</columns>
<controls/>
<searchs/>
<searchExpress></searchExpress>
<filters>
<filter>
<id>2c9c81b5687ebb7e016a6c083e7304e7</id>
<name>END_DATE</name>
<enname>END_DATE</enname>
<label>合同到期日</label>
<filterType>FILTER</filterType>
<dbType>DATE</dbType>
<htmlType>DATERANGE</htmlType>
<position>0</position>
</filter>
<filter>
<id>2c9c81b5687ebb7e016a6c083e7304e8</id>
<name>FULLNAME</name>
<enname>FULLNAME</enname>
<label>客户名称</label>
<filterType>FILTER</filterType>
<dbType>STRING</dbType>
<htmlType>TEXT</htmlType>
<position>1</position>
</filter>
<filter>
<id>2c9c81b5687ebb7e016a6c083e7304e9</id>
<name>distributor_name</name>
<enname>distributor_name</enname>
<label>经销商名称</label>
<filterType>FILTER</filterType>
<dbType>STRING</dbType>
<htmlType>TEXT</htmlType>
<position>2</position>
</filter>
<filter>
<id>2c9c81b5687ebb7e016a6c083e7304e6</id>
<name>jzll</name>
<enname>jzll</enname>
<label>地址</label>
<filterType>FILTER</filterType>
<dbType>STRING</dbType>
<htmlType>TEXT</htmlType>
<position>3</position>
</filter>
</filters>
<filterExpress></filterExpress>
<pageSize>20</pageSize>
<showRowNumber>true</showRowNumber>
<showTotalTitle>false</showTotalTitle>
<isScale>false</isScale>
<isCache>false</isCache>
<isExcel>false</isExcel>
</table>
</tables>
<charts/>
<pages/>
<layouts>
<layout>
<id>2c9c81b5687ebb7e016a6c069fdc04d8</id>
<divHeight>0</divHeight>
<divWidth>0</divWidth>
<position>0</position>
<contentId>TABLE#2c9c81b5687ebb7e01696a97ebea0158</contentId>
<report>2c9c81b5687ebb7e016a6c069fda04c7</report>
<contentType>TABLE</contentType>
</layout>
</layouts>
</TenwaReport>