282 lines
12 KiB
XML
282 lines
12 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>2c9c81b565137ab2016526f94ce10016</id>
|
|
<name>基本佣金</name>
|
|
<enname>base_yj</enname>
|
|
<code>base_yj</code>
|
|
<isActived>true</isActived>
|
|
<position>9</position>
|
|
<reportType>REPORT</reportType>
|
|
<parentReport>2c9c81b7685efbbc016931c675a50006</parentReport>
|
|
<children/>
|
|
<layouts>
|
|
<layout>2c9c81b565137ab201652702a9770022</layout>
|
|
</layouts>
|
|
</report>
|
|
</reports>
|
|
<tables>
|
|
<table>
|
|
<id>2c9c81b565137ab2016526fb3b6f0017</id>
|
|
<name>基本佣金</name>
|
|
<enname>base_yj</enname>
|
|
<reportDataSource>2c9023815726a036015726a496b00001</reportDataSource>
|
|
<queryType>COMPLEXSQL</queryType>
|
|
<sql>SELECT
|
|
MAX(t.distributor_name) distributor_name,
|
|
MAX(t.distributorer) distributorer,
|
|
MAX(t.distributor_tel) distributor_tel,
|
|
t.fact_date,
|
|
COUNT(1) danliang,
|
|
SUM(t.FACT_MONEY) FACT_MONEY,
|
|
SUM(t.basemoney) basemoney,
|
|
MAX(t.F_I_TYPE) F_I_TYPE
|
|
FROM (
|
|
SELECT
|
|
lci.`CONTRACT_Number`,
|
|
lci.PRODUCT_ID,
|
|
SUBSTR(lci.`PROJECT_NAME`,10) cust_name,
|
|
LEFT(lfi.`FACT_DATE`,7) FACT_DATE,
|
|
lfi.`FACT_MONEY`,
|
|
di.distributor_no,
|
|
di.`distributor_name`,
|
|
di.`distributorer`,
|
|
di.`distributor_tel`,
|
|
CASE WHEN di.F_I_TYPE='f_i_type01' THEN '集团内' ELSE '集团外' END F_I_TYPE ,
|
|
getYongJingXiShu(lci.leas_form,LEFT(lfi.`FACT_DATE`,7)) ATTR_VALUE,
|
|
CASE WHEN getYongJingXiShu(lci.leas_form,LEFT(lfi.`FACT_DATE`,7))>100
|
|
THEN
|
|
getYongJingXiShu(lci.leas_form,LEFT(lfi.`FACT_DATE`,7))
|
|
ELSE
|
|
IFNULL(getYongJingXiShu(lci.leas_form,LEFT(lfi.`FACT_DATE`,7)),0)*IFNULL(lfi.FACT_MONEY,0)/100
|
|
END basemoney
|
|
FROM
|
|
lb_contract_info lci
|
|
LEFT JOIN distributor_info di ON lci.`distributor_id`=di.distributor_no
|
|
LEFT JOIN `lb_product_info` lpi ON lpi.PRODUCT_ID=lci.`PRODUCT_ID`
|
|
LEFT JOIN lc_fund_income lfi ON lfi.`CONTRACT_ID`=lci.`ID` AND lfi.`FEE_TYPE`='feetype10'
|
|
WHERE lci.contract_status>=31 and lci.HaveCommission='Y'
|
|
) t
|
|
GROUP BY t.distributor_no,t.FACT_DATE ORDER BY t.FACT_DATE DESC,t.distributor_no
|
|
</sql>
|
|
<sqlParamValue></sqlParamValue>
|
|
<columns>
|
|
<column>
|
|
<id>2c9c81b565137ab2016526fb3b6f0019</id>
|
|
<name>distributor_name</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>经销商名称</label>
|
|
<enLabel>distributor_name</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>2c9c81b565137ab2016526fb3b6f0018</id>
|
|
<name>distributorer</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>经销商联系人</label>
|
|
<enLabel>distributorer</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>2c9c81b565137ab2016526fb3b6f001d</id>
|
|
<name>distributor_tel</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>联系电话</label>
|
|
<enLabel>distributor_tel</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>2c9c81b565137ab2016526fb3b6f001b</id>
|
|
<name>FACT_DATE</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>月份</label>
|
|
<enLabel>FACT_DATE</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>2c9c81b565137ab2016526fb3b6f001a</id>
|
|
<name>danliang</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater></formater>
|
|
<label>当月放款单量</label>
|
|
<enLabel>danliang</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>2c9c81b565137ab2016526fb3b6f001e</id>
|
|
<name>FACT_MONEY</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater>#,##0.00</formater>
|
|
<label>当月放款金额</label>
|
|
<enLabel>FACT_MONEY</enLabel>
|
|
<width>100</width>
|
|
<position>13</position>
|
|
<isVisible>true</isVisible>
|
|
<color></color>
|
|
<isCountTotal>false</isCountTotal>
|
|
<isCountSubTotal>false</isCountSubTotal>
|
|
<isGroupby>false</isGroupby>
|
|
<isMerge>false</isMerge>
|
|
<alignType>RIGHT</alignType>
|
|
<action></action>
|
|
<actionParamters></actionParamters>
|
|
<actionCondition></actionCondition>
|
|
</column>
|
|
<column>
|
|
<id>2c9c81b565137ab2016526fb3b6f001c</id>
|
|
<name>basemoney</name>
|
|
<columnDataType>NUMBER</columnDataType>
|
|
<formater>#,##0.00</formater>
|
|
<label>基本佣金</label>
|
|
<enLabel>basemoney</enLabel>
|
|
<width>100</width>
|
|
<position>14</position>
|
|
<isVisible>true</isVisible>
|
|
<color></color>
|
|
<isCountTotal>false</isCountTotal>
|
|
<isCountSubTotal>false</isCountSubTotal>
|
|
<isGroupby>false</isGroupby>
|
|
<isMerge>false</isMerge>
|
|
<alignType>RIGHT</alignType>
|
|
<action></action>
|
|
<actionParamters></actionParamters>
|
|
<actionCondition></actionCondition>
|
|
</column>
|
|
<column>
|
|
<id>2c9c81b565137ab2016526fb3b6f001f</id>
|
|
<name>F_I_TYPE</name>
|
|
<columnDataType>STRING</columnDataType>
|
|
<formater></formater>
|
|
<label>集团类别</label>
|
|
<enLabel>F_I_TYPE</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>
|
|
</columns>
|
|
<controls/>
|
|
<searchs/>
|
|
<searchExpress></searchExpress>
|
|
<filters>
|
|
<filter>
|
|
<id>2c9c81b565137ab201652700fab40020</id>
|
|
<name>distributor_name</name>
|
|
<enname>distributor_name</enname>
|
|
<label>经销商名称</label>
|
|
<filterType>FILTER</filterType>
|
|
<dbType>STRING</dbType>
|
|
<htmlType>TEXT</htmlType>
|
|
<position>0</position>
|
|
</filter>
|
|
<filter>
|
|
<id>2c9c81b565137ab20165270155840021</id>
|
|
<name>FACT_DATE</name>
|
|
<enname>FACT_DATE</enname>
|
|
<label>月份</label>
|
|
<filterType>FILTER</filterType>
|
|
<dbType>STRING</dbType>
|
|
<htmlType>TEXT</htmlType>
|
|
<position>1</position>
|
|
</filter>
|
|
</filters>
|
|
<filterExpress></filterExpress>
|
|
<pageSize>20</pageSize>
|
|
<showRowNumber>true</showRowNumber>
|
|
<showTotalTitle>true</showTotalTitle>
|
|
<isScale>true</isScale>
|
|
<isCache>false</isCache>
|
|
<isExcel>false</isExcel>
|
|
</table>
|
|
</tables>
|
|
<charts/>
|
|
<pages/>
|
|
<layouts>
|
|
<layout>
|
|
<id>2c9c81b565137ab201652702a9770022</id>
|
|
<divHeight>0</divHeight>
|
|
<divWidth>0</divWidth>
|
|
<position>0</position>
|
|
<contentId>TABLE#2c9c81b565137ab2016526fb3b6f0017</contentId>
|
|
<report>2c9c81b565137ab2016526f94ce10016</report>
|
|
<contentType>TABLE</contentType>
|
|
</layout>
|
|
</layouts>
|
|
</TenwaReport>
|