apzl_leasing/报表/汽车类报表二/经销商账号日志表.xml
2019-12-24 15:17:14 +08:00

506 lines
22 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>2c9c81b565137ab20165219bb3970003</id>
<name>经销商账号日志表</name>
<enname>distributor_account_log</enname>
<code>REPORT_CODE_1533867176853</code>
<isActived>true</isActived>
<position>17</position>
<reportType>REPORT</reportType>
<parentReport>2c9c81b7685efbbc016931c6eff50007</parentReport>
<children/>
<layouts>
<layout>2c9c81b565137ab20165219f11b30005</layout>
</layouts>
</report>
</reports>
<tables>
<table>
<id>2c9c81b565137ab20165219ecfbe0004</id>
<name>经销商账号日志表</name>
<enname>distributor_account_log</enname>
<reportDataSource>2c9023815726a036015726a496b00001</reportDataSource>
<queryType>COMPLEXSQL</queryType>
<sql> select
di.distributor_coding,
di.distributor_name,
dal.TIMESTAMP,
case when dal.action_type ='A' then '新增'
when dal.action_type ='UB' then '修改'
when dal.action_type ='' and adal.action_type ='D' then '删除' else '删除' end action_type,
case when dal.action_type ='A' or dal.action_type ='UB' then
dal.account else '' end account,
case when dal.action_type ='A' or dal.action_type ='UB' then
dal.acc_number else '' end acc_number,
case when dal.action_type ='A' or dal.action_type ='UB' then
case dal.is_main when 'N' then '否' else '是' end else '' end is_main,
case when dal.action_type ='A' or dal.action_type ='UB' then
case dal.acc_info when 'accountUsetype3' then '正常' else '停用' end else '' end as aacc_info,
case when dal.action_type ='A' or dal.action_type ='UB' then
dal.open_bank else '' end open_bank ,
case when dal.action_type ='A' or dal.action_type ='UB' then
dal.province else '' end province ,
case when dal.action_type ='A' or dal.action_type ='UB' then
dal.district else '' end district,
case when dal.action_type ='D' then dal.account
when adal.action_type ='UA' then Adal.account else '' end aaccount ,
case when dal.action_type ='D' then dal.acc_number
when adal.action_type ='UA' then adal.acc_number else '' end aacc_number,
case when dal.action_type ='D' then
case dal.is_main when 'N' then '否' else '是' end
when adal.action_type ='UA' then
case adal.is_main when 'N' then '否' else '是' end else '' end ais_main,
case when dal.action_type ='D' then
case dal.acc_info when 'accountUsetype3' then '正常' else '停用' end else '' end as acc_info,
case when dal.action_type ='D' then dal.open_bank
when adal.action_type ='UA' then adal.open_bank
else '' end aopen_bank,
case when dal.action_type ='D' then dal.province
when adal.action_type ='UA' then adal.province
else '' end aprovince ,
case when dal.action_type ='D' then dal.district
when adal.action_type ='UA' then adal.district
else '' end adistrict
from (select * from distributor_account_log
where action_type='A' or action_type='UB' or action_type='D' ) dal
left join distributor_info di on di.distributor_no=dal.distributor_id
left join (select * from distributor_account_log where action_type='UA')
adal on left(adal.action_type,1)=left(dal.action_type,1) and adal.timestamp=dal.timestamp
where distributor_coding is not null
order by timestamp desc</sql>
<sqlParamValue></sqlParamValue>
<columns>
<column>
<id>2c9c81b56552c94901658496a6090067</id>
<name>distributor_coding</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>经销商编号</label>
<enLabel>distributor_coding</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>2c9c81b56552c94901658496a6090068</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>2c9c81b56552c9490165849e4ada006c</id>
<name>TIMESTAMP</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>时间</label>
<enLabel>TIMESTAMP</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>2c9c81b565137ab20165219f2daa000b</id>
<name>acc_number</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>变更前账户号码</label>
<enLabel>acc_number</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>2c9c81b565137ab20165219f2daa0008</id>
<name>account</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>变更前账户名称</label>
<enLabel>account</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>2c9c81b565137ab20165219f2daa000d</id>
<name>is_main</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>变更前是否主账户</label>
<enLabel>is_main</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>2c9c81b565137ab20165219f2daa000e</id>
<name>acc_info</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>变更前账户使用情况</label>
<enLabel>acc_info</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>2c9c81b565137ab20165219f2daa000c</id>
<name>open_bank</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>变更前开户银行</label>
<enLabel>open_bank</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>2c9c81b565137ab20165219f2daa0006</id>
<name>province</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>变更前省份</label>
<enLabel>province</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>2c9c81b565137ab20165219f2daa0009</id>
<name>district</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>变更前市区</label>
<enLabel>district</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>2c9c81b56552c94901657fec3a31005f</id>
<name>action_type</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>功能类型</label>
<enLabel>action_type</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>2c9c81b56552c94901658496a6090065</id>
<name>aaccount</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>账户名称</label>
<enLabel>aaccount</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>2c9c81b56552c94901658496a609006a</id>
<name>aacc_number</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>账户号码</label>
<enLabel>aacc_number</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>2c9c81b56552c94901658496a609006b</id>
<name>ais_main</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>是否主账户</label>
<enLabel>ais_main</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>2c9c81b56552c949016588957adf0070</id>
<name>aacc_info</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>账户使用情况</label>
<enLabel>aacc_info</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>2c9c81b56552c94901658496a6090066</id>
<name>aopen_bank</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>开户银行</label>
<enLabel>aopen_bank</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>2c9c81b56552c94901658496a6090063</id>
<name>aprovince</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>省份</label>
<enLabel>aprovince</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>2c9c81b56552c94901658496a6090064</id>
<name>adistrict</name>
<columnDataType>STRING</columnDataType>
<formater></formater>
<label>市区</label>
<enLabel>adistrict</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>
<filter>
<id>2c9c81b56552c949016584a2b0f8006e</id>
<name>distributor_coding</name>
<enname>distributor_coding</enname>
<label>经销商编号</label>
<filterType>FILTER</filterType>
<dbType>STRING</dbType>
<htmlType>TEXT</htmlType>
<position>0</position>
</filter>
<filter>
<id>2c9c81b565137ab2016521b1064b0010</id>
<name>distributor_name</name>
<enname>distributor_name</enname>
<label>经销商名称</label>
<filterType>FILTER</filterType>
<dbType>STRING</dbType>
<htmlType>TEXT</htmlType>
<position>1</position>
</filter>
<filter>
<id>2c9c81b56552c949016584a332dd006f</id>
<name>TIMESTAMP</name>
<enname>TIMESTAMP</enname>
<label>时间</label>
<filterType>FILTER</filterType>
<dbType>DATE</dbType>
<htmlType>DATERANGE</htmlType>
<position>2</position>
</filter>
<filter>
<id>2c9c81b56552c949016584a11dd6006d</id>
<name>aopen_bank</name>
<enname>aopen_bank</enname>
<label>开户银行</label>
<filterType>FILTER</filterType>
<dbType>STRING</dbType>
<htmlType>TEXT</htmlType>
<position>3</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>2c9c81b565137ab20165219f11b30005</id>
<divHeight>0</divHeight>
<divWidth>0</divWidth>
<position>0</position>
<contentId>TABLE#2c9c81b565137ab20165219ecfbe0004</contentId>
<report>2c9c81b565137ab20165219bb3970003</report>
<contentType>TABLE</contentType>
</layout>
</layouts>
</TenwaReport>