Browse Source

excel导出模板整合

jun.zhou 9 years ago
parent
commit
23aa3fcdb7

+ 125 - 0
src/main/resources/template/excel/OperatorBalance.ftl

@@ -0,0 +1,125 @@
+<?xml version="1.0"?>
+<?mso-application progid="Excel.Sheet"?>
+<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">
+ <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
+  <Author>adnetwork</Author>
+  <LastAuthor>adnetwork</LastAuthor>
+  <Created>2014-10-15T06:05:44Z</Created>
+  <Version>14.00</Version>
+ </DocumentProperties>
+ <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
+  <AllowPNG/>
+ </OfficeDocumentSettings>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+  <WindowHeight>5130</WindowHeight>
+  <WindowWidth>16155</WindowWidth>
+  <WindowTopX>240</WindowTopX>
+  <WindowTopY>45</WindowTopY>
+  <ProtectStructure>False</ProtectStructure>
+  <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+  <Style ss:ID="Default" ss:Name="Normal">
+   <Alignment ss:Vertical="Center"/>
+   <Borders/>
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
+   <Interior/>
+   <NumberFormat/>
+   <Protection/>
+  </Style>
+  <Style ss:ID="s63" ss:Name="超链接">
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#0000FF"
+    ss:Underline="Single"/>
+  </Style>
+  <Style ss:ID="s65">
+   <NumberFormat ss:Format="Short Date"/>
+  </Style>
+  <Style ss:ID="s66">
+   <NumberFormat ss:Format="0%"/>
+  </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+3}<#else>3</#if>" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+   <Column ss:AutoFitWidth="0" ss:Width="114"/>
+   <Column ss:AutoFitWidth="0" ss:Width="95.25"/>
+   <Column ss:AutoFitWidth="0" ss:Width="93" ss:Span="1"/>
+   <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
+   <Column ss:Width="63"/>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">广告位:${zoneName!} </Data></Cell>
+   </Row>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">开始日期:${startDate!}    结束日期:${endDate!}</Data></Cell>
+   </Row>
+   <Row>
+	   
+	   	<Cell><Data ss:Type="String">广告曝光数</Data></Cell>
+	    <Cell><Data ss:Type="String">广告点击数</Data></Cell>
+	    <Cell><Data ss:Type="String">eCpm</Data></Cell>
+	    <Cell><Data ss:Type="String">收入</Data></Cell>
+	   	
+	   </Row>
+<#if dataList ??>
+     <#list dataList as deliverAnalysis>   
+		   <Row>
+		   	
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.impression!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.click!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.ecpm!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.income!}</Data></Cell>
+		   </Row>
+	 </#list>
+  </#if>   
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <Selected/>
+   <Panes>
+    <Pane>
+     <Number>3</Number>
+     <ActiveRow>7</ActiveRow>
+     <ActiveCol>8</ActiveCol>
+    </Pane>
+   </Panes>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet2">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet3">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+</Workbook>

+ 125 - 0
src/main/resources/template/excel/ad.ftl

@@ -0,0 +1,125 @@
+<?xml version="1.0"?>
+<?mso-application progid="Excel.Sheet"?>
+<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">
+ <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
+  <Author>adnetwork</Author>
+  <LastAuthor>adnetwork</LastAuthor>
+  <Created>2014-10-15T06:05:44Z</Created>
+  <Version>14.00</Version>
+ </DocumentProperties>
+ <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
+  <AllowPNG/>
+ </OfficeDocumentSettings>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+  <WindowHeight>5130</WindowHeight>
+  <WindowWidth>16155</WindowWidth>
+  <WindowTopX>240</WindowTopX>
+  <WindowTopY>45</WindowTopY>
+  <ProtectStructure>False</ProtectStructure>
+  <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+  <Style ss:ID="Default" ss:Name="Normal">
+   <Alignment ss:Vertical="Center"/>
+   <Borders/>
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
+   <Interior/>
+   <NumberFormat/>
+   <Protection/>
+  </Style>
+  <Style ss:ID="s63" ss:Name="超链接">
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#0000FF"
+    ss:Underline="Single"/>
+  </Style>
+  <Style ss:ID="s65">
+   <NumberFormat ss:Format="Short Date"/>
+  </Style>
+  <Style ss:ID="s66">
+   <NumberFormat ss:Format="0%"/>
+  </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+2}<#else>2</#if>" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+   <Column ss:AutoFitWidth="0" ss:Width="114"/>
+   <Column ss:AutoFitWidth="0" ss:Width="95.25"/>
+   <Column ss:AutoFitWidth="0" ss:Width="93" ss:Span="1"/>
+   <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
+   <Column ss:Width="63"/>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">所选广告主名称:${selectedadvertiserName!}  所选订单名称:${selectedorderName!}   所选活动名称:${selectedcampaignName!} 所选投放名称:${selectedadGroupName!} </Data></Cell> 
+   </Row>
+   <Row>
+	    <Cell><Data ss:Type="String">ID</Data></Cell>
+	   	<Cell><Data ss:Type="String">创意</Data></Cell>
+	    <Cell><Data ss:Type="String">创意名称</Data></Cell>
+	    <Cell><Data ss:Type="String">创意链接</Data></Cell>
+	    <Cell><Data ss:Type="String">尺寸</Data></Cell>
+	    <Cell><Data ss:Type="String">最后更新时间</Data></Cell>
+	    <Cell><Data ss:Type="String">状态</Data></Cell>
+   </Row>
+<#if dataList ??>
+     <#list dataList as ad>   
+		   <Row>
+	   		<Cell><Data ss:Type="String">${ad.id!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${ad.bannerTemplate.path!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${ad.bannerTemplate.name!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${ad.visitAddress!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${ad.bannerTemplate.width!} X ${ad.bannerTemplate.height}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${ad.updated?datetime}</Data></Cell>
+	    	<Cell><Data ss:Type="String"><#if ad.status==0>开启<#else>暂停</#if></Data></Cell>
+		   </Row>
+	 </#list>
+  </#if>   
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <Selected/>
+   <Panes>
+    <Pane>
+     <Number>3</Number>
+     <ActiveRow>7</ActiveRow>
+     <ActiveCol>8</ActiveCol>
+    </Pane>
+   </Panes>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet2">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet3">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+</Workbook>

+ 122 - 0
src/main/resources/template/excel/adGroup.ftl

@@ -0,0 +1,122 @@
+<?xml version="1.0"?>
+<?mso-application progid="Excel.Sheet"?>
+<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">
+ <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
+  <Author>adnetwork</Author>
+  <LastAuthor>adnetwork</LastAuthor>
+  <Created>2014-10-15T06:05:44Z</Created>
+  <Version>14.00</Version>
+ </DocumentProperties>
+ <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
+  <AllowPNG/>
+ </OfficeDocumentSettings>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+  <WindowHeight>5130</WindowHeight>
+  <WindowWidth>16155</WindowWidth>
+  <WindowTopX>240</WindowTopX>
+  <WindowTopY>45</WindowTopY>
+  <ProtectStructure>False</ProtectStructure>
+  <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+  <Style ss:ID="Default" ss:Name="Normal">
+   <Alignment ss:Vertical="Center"/>
+   <Borders/>
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
+   <Interior/>
+   <NumberFormat/>
+   <Protection/>
+  </Style>
+  <Style ss:ID="s63" ss:Name="超链接">
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#0000FF"
+    ss:Underline="Single"/>
+  </Style>
+  <Style ss:ID="s65">
+   <NumberFormat ss:Format="Short Date"/>
+  </Style>
+  <Style ss:ID="s66">
+   <NumberFormat ss:Format="0%"/>
+  </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+2}<#else>2</#if>" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+   <Column ss:AutoFitWidth="0" ss:Width="114"/>
+   <Column ss:AutoFitWidth="0" ss:Width="95.25"/>
+   <Column ss:AutoFitWidth="0" ss:Width="93" ss:Span="1"/>
+   <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
+   <Column ss:Width="63"/>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">所选广告主名称:${selectedadvertiserName!}  所选订单名称:${selectedorderName!}   所选活动名称:${selectedcampaignName!} </Data></Cell> 
+   </Row>
+   
+   <Row>
+	    <Cell><Data ss:Type="String">投放名称</Data></Cell>
+	   	<Cell><Data ss:Type="String">投放周期</Data></Cell>
+	    <Cell><Data ss:Type="String">投放状态</Data></Cell>
+	    <Cell><Data ss:Type="String">创意数</Data></Cell>
+	    <Cell><Data ss:Type="String">更新时间</Data></Cell>
+   </Row>
+<#if dataList ??>
+     <#list dataList as adGroup>   
+		   <Row>
+	   		<Cell><Data ss:Type="String">${adGroup.adGroupName!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${adGroup.startDate?string('yyyy/MM/dd')} - ${adGroup.endDate?string('yyyy/MM/dd')}</Data></Cell>
+	    	<Cell><Data ss:Type="String"><#if adGroup.status==0>开启<#else>暂停</#if></Data></Cell>
+	    	<Cell><Data ss:Type="String">${adGroup.bannerNumber}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${adGroup.updated?datetime}</Data></Cell>
+		   </Row>
+	 </#list>
+  </#if>   
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <Selected/>
+   <Panes>
+    <Pane>
+     <Number>3</Number>
+     <ActiveRow>7</ActiveRow>
+     <ActiveCol>8</ActiveCol>
+    </Pane>
+   </Panes>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet2">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet3">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+</Workbook>

+ 7 - 15
src/main/resources/template/excel/auditReport.ftl → src/main/resources/template/excel/advertiserDataReport.ftl

@@ -58,30 +58,22 @@
    </Row>
    <Row>
 	   
-	   	
+	   	<Cell><Data ss:Type="String">广告主Id</Data></Cell>
 	    <Cell><Data ss:Type="String">广告主名称</Data></Cell>
-	    <Cell><Data ss:Type="String">广告主行业</Data></Cell>
-	    <Cell><Data ss:Type="String">广告主注册名</Data></Cell>
-	    <Cell><Data ss:Type="String">代理商名称</Data></Cell>
-	    <Cell><Data ss:Type="String">审核状态(0未审核,1审核通过,-1审核未通过)</Data></Cell>
-	    <Cell><Data ss:Type="String">联系人</Data></Cell>
-	     <Cell><Data ss:Type="String">电话</Data></Cell>
-	      <Cell><Data ss:Type="String">邮箱</Data></Cell>	   	
+	    <Cell><Data ss:Type="String">行业</Data></Cell>
+	    <Cell><Data ss:Type="String">类型(订单数)</Data></Cell>
+	   	<Cell><Data ss:Type="String">状态(0开启,1停用)</Data></Cell>
 	    <Cell><Data ss:Type="String">最后更新日期</Data></Cell>
 	   </Row>
 <#if dataList ??>
      <#list dataList as deliverAnalysis>   
 		   <Row>
 		   	
-	   		
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.id!}</Data></Cell>
 	    	<Cell><Data ss:Type="String">${deliverAnalysis.name!}</Data></Cell>
 	    	<Cell><Data ss:Type="String">${deliverAnalysis.industryName!}</Data></Cell>
-	    	<Cell><Data ss:Type="String">${deliverAnalysis.regName!}</Data></Cell>
-	    	<Cell><Data ss:Type="String">${deliverAnalysis.agentName!}</Data></Cell>
-	    	<Cell><Data ss:Type="String">${deliverAnalysis.checkStatus!}</Data></Cell>
-	   		<Cell><Data ss:Type="String">${deliverAnalysis.contacts!}</Data></Cell>
-	    	<Cell><Data ss:Type="String">${deliverAnalysis.tel!}</Data></Cell>
-	    	<Cell><Data ss:Type="String">${deliverAnalysis.email!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.orderNum!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.status!}</Data></Cell>
 	   		<Cell><Data ss:Type="String">${deliverAnalysis.updated?datetime}</Data></Cell> 
 		   </Row>
 	 </#list>

+ 127 - 0
src/main/resources/template/excel/allocateReport.ftl

@@ -0,0 +1,127 @@
+<?xml version="1.0"?>
+<?mso-application progid="Excel.Sheet"?>
+<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">
+ <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
+  <Author>adnetwork</Author>
+  <LastAuthor>adnetwork</LastAuthor>
+  <Created>2014-10-15T06:05:44Z</Created>
+  <Version>14.00</Version>
+ </DocumentProperties>
+ <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
+  <AllowPNG/>
+ </OfficeDocumentSettings>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+  <WindowHeight>5130</WindowHeight>
+  <WindowWidth>16155</WindowWidth>
+  <WindowTopX>240</WindowTopX>
+  <WindowTopY>45</WindowTopY>
+  <ProtectStructure>False</ProtectStructure>
+  <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+  <Style ss:ID="Default" ss:Name="Normal">
+   <Alignment ss:Vertical="Center"/>
+   <Borders/>
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
+   <Interior/>
+   <NumberFormat/>
+   <Protection/>
+  </Style>
+  <Style ss:ID="s63" ss:Name="超链接">
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#0000FF"
+    ss:Underline="Single"/>
+  </Style>
+  <Style ss:ID="s65">
+   <NumberFormat ss:Format="Short Date"/>
+  </Style>
+  <Style ss:ID="s66">
+   <NumberFormat ss:Format="0%"/>
+  </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+3}<#else>3</#if>" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+   <Column ss:AutoFitWidth="0" ss:Width="114"/>
+   <Column ss:AutoFitWidth="0" ss:Width="95.25"/>
+   <Column ss:AutoFitWidth="0" ss:Width="93" ss:Span="1"/>
+   <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
+   <Column ss:Width="63"/>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">广告主Id:${advertiserId!} </Data></Cell>
+   </Row>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">开始日期:${startDate!}    结束日期:${endDate!}</Data></Cell>
+   </Row>
+   <Row>
+	   
+	   	
+	    <Cell><Data ss:Type="String">时间(日期)</Data></Cell>
+	    <Cell><Data ss:Type="String">广告主名称</Data></Cell>
+	    <Cell><Data ss:Type="String">分配金额</Data></Cell>
+	   	<Cell><Data ss:Type="String">消耗信用额度</Data></Cell>
+	    <Cell><Data ss:Type="String">可用信用额度</Data></Cell>
+
+	   </Row>
+<#if dataList ??>
+     <#list dataList as deliverAnalysis>   
+		   <Row>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.actTime?date!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.advertiserName!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.allocate!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.allocate!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.allocate!}</Data></Cell> 	   			   		   		
+		   </Row>
+	 </#list>
+  </#if>   
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <Selected/>
+   <Panes>
+    <Pane>
+     <Number>3</Number>
+     <ActiveRow>7</ActiveRow>
+     <ActiveCol>8</ActiveCol>
+    </Pane>
+   </Panes>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet2">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet3">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+</Workbook>

+ 121 - 0
src/main/resources/template/excel/amendmentLog.ftl

@@ -0,0 +1,121 @@
+<?xml version="1.0"?>
+<?mso-application progid="Excel.Sheet"?>
+<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">
+ <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
+  <Author>adnetwork</Author>
+  <LastAuthor>adnetwork</LastAuthor>
+  <Created>2014-10-15T06:05:44Z</Created>
+  <Version>14.00</Version>
+ </DocumentProperties>
+ <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
+  <AllowPNG/>
+ </OfficeDocumentSettings>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+  <WindowHeight>5130</WindowHeight>
+  <WindowWidth>16155</WindowWidth>
+  <WindowTopX>240</WindowTopX>
+  <WindowTopY>45</WindowTopY>
+  <ProtectStructure>False</ProtectStructure>
+  <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+  <Style ss:ID="Default" ss:Name="Normal">
+   <Alignment ss:Vertical="Center"/>
+   <Borders/>
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
+   <Interior/>
+   <NumberFormat/>
+   <Protection/>
+  </Style>
+  <Style ss:ID="s63" ss:Name="超链接">
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#0000FF"
+    ss:Underline="Single"/>
+  </Style>
+  <Style ss:ID="s65">
+   <NumberFormat ss:Format="Short Date"/>
+  </Style>
+  <Style ss:ID="s66">
+   <NumberFormat ss:Format="0%"/>
+  </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+2}<#else>2</#if>" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+   <Column ss:AutoFitWidth="0" ss:Width="114"/>
+   <Column ss:AutoFitWidth="0" ss:Width="95.25"/>
+   <Column ss:AutoFitWidth="0" ss:Width="93" ss:Span="1"/>
+   <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
+   <Column ss:Width="63"/>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">修改记录:${name} </Data></Cell>
+   </Row>
+  	 <Row>
+	    <Cell><Data ss:Type="String">变更时间</Data></Cell>
+	    <Cell><Data ss:Type="String">操作人账号名</Data></Cell>
+	    <Cell><Data ss:Type="String">登录IP</Data></Cell>
+	   	<Cell><Data ss:Type="String">操作类型</Data></Cell>
+	    <Cell><Data ss:Type="String">变更详情</Data></Cell>
+	   </Row>
+<#if dataList ??>
+     <#list dataList as data>   
+		   <Row>
+	    	<Cell><Data ss:Type="String">${data.operTime?datetime}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${data.accountName!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${data.userIp!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${data.actionType!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${data.action!}</Data></Cell> 
+		   </Row>
+	 </#list>
+  </#if>   
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <Selected/>
+   <Panes>
+    <Pane>
+     <Number>3</Number>
+     <ActiveRow>7</ActiveRow>
+     <ActiveCol>8</ActiveCol>
+    </Pane>
+   </Panes>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet2">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet3">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+</Workbook>

+ 137 - 0
src/main/resources/template/excel/apList.ftl

@@ -0,0 +1,137 @@
+<?xml version="1.0"?>
+<?mso-application progid="Excel.Sheet"?>
+<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">
+ <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
+  <Author>adnetwork</Author>
+  <LastAuthor>adnetwork</LastAuthor>
+  <Created>2014-10-15T06:05:44Z</Created>
+  <Version>14.00</Version>
+ </DocumentProperties>
+ <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
+  <AllowPNG/>
+ </OfficeDocumentSettings>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+  <WindowHeight>5130</WindowHeight>
+  <WindowWidth>16155</WindowWidth>
+  <WindowTopX>240</WindowTopX>
+  <WindowTopY>45</WindowTopY>
+  <ProtectStructure>False</ProtectStructure>
+  <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+  <Style ss:ID="Default" ss:Name="Normal">
+   <Alignment ss:Vertical="Center"/>
+   <Borders/>
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
+   <Interior/>
+   <NumberFormat/>
+   <Protection/>
+  </Style>
+  <Style ss:ID="s63" ss:Name="超链接">
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#0000FF"
+    ss:Underline="Single"/>
+  </Style>
+  <Style ss:ID="s65">
+   <NumberFormat ss:Format="Short Date"/>
+  </Style>
+  <Style ss:ID="s66">
+   <NumberFormat ss:Format="0%"/>
+  </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+2}<#else>2</#if>" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+   <Column ss:AutoFitWidth="0" ss:Width="114"/>
+   <Column ss:AutoFitWidth="0" ss:Width="95.25"/>
+   <Column ss:AutoFitWidth="0" ss:Width="93" ss:Span="1"/>
+   <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
+   <Column ss:Width="63"/>
+   <Row>
+    <Cell ss:MergeAcross="12"><Data ss:Type="String">省:${cnName!}   市:${cnCityName!}   场景:${placeNameDefinedByOperator!}   数聚场景:${placeName!}  </Data></Cell>
+   </Row>
+   <Row>
+	    <Cell><Data ss:Type="String">ID</Data></Cell>
+	   	<Cell><Data ss:Type="String">热点名称</Data></Cell>
+	    <Cell><Data ss:Type="String">SSID</Data></Cell>
+	    <Cell><Data ss:Type="String">省</Data></Cell>
+	    <Cell><Data ss:Type="String">市</Data></Cell>
+	    <Cell><Data ss:Type="String">详细地址</Data></Cell>
+	   	<Cell><Data ss:Type="String">经度</Data></Cell>
+	   	<Cell><Data ss:Type="String">纬度</Data></Cell>
+	    <Cell><Data ss:Type="String">Apmac</Data></Cell>
+	    <Cell><Data ss:Type="String">场景</Data></Cell>
+	    <Cell><Data ss:Type="String">数聚场景</Data></Cell>
+	    <Cell><Data ss:Type="String">最后更新时间</Data></Cell>
+	    <Cell><Data ss:Type="String">状态</Data></Cell>
+   </Row>
+<#if dataList ??>
+     <#list dataList as wifi>   
+		   <Row>
+		   <Cell><Data ss:Type="String">${wifi.id!}</Data></Cell>
+		   <Cell><Data ss:Type="String">${wifi.name!}</Data></Cell>
+		   <Cell><Data ss:Type="String">${wifi.SSID!}</Data></Cell>
+		   <Cell><Data ss:Type="String">${wifi.cn!}</Data></Cell>
+		   <Cell><Data ss:Type="String">${wifi.cnCity!}</Data></Cell>
+		   <Cell><Data ss:Type="String">${wifi.address!}</Data></Cell>
+		   <Cell><Data ss:Type="String">${wifi.longitude!}</Data></Cell>
+		   <Cell><Data ss:Type="String">${wifi.latitude!}</Data></Cell>
+		   <Cell><Data ss:Type="String">${wifi.apmac!}</Data></Cell>
+		   <Cell><Data ss:Type="String">${wifi.placeName!}</Data></Cell>
+		   <Cell><Data ss:Type="String">${wifi.place!}</Data></Cell>
+		   <Cell><Data ss:Type="String">${wifi.updated?string('yyyy/MM/dd')}</Data></Cell>
+		    <Cell><Data ss:Type="String"><#if wifi.status==1>暂停<#else>开启</#if></Data></Cell>
+		   </Row>
+	 </#list>
+  </#if>   
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <Selected/>
+   <Panes>
+    <Pane>
+     <Number>3</Number>
+     <ActiveRow>7</ActiveRow>
+     <ActiveCol>8</ActiveCol>
+    </Pane>
+   </Panes>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet2">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet3">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+</Workbook>

+ 122 - 0
src/main/resources/template/excel/balanceReport.ftl

@@ -0,0 +1,122 @@
+<?xml version="1.0"?>
+<?mso-application progid="Excel.Sheet"?>
+<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">
+ <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
+  <Author>adnetwork</Author>
+  <LastAuthor>adnetwork</LastAuthor>
+  <Created>2014-10-15T06:05:44Z</Created>
+  <Version>14.00</Version>
+ </DocumentProperties>
+ <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
+  <AllowPNG/>
+ </OfficeDocumentSettings>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+  <WindowHeight>5130</WindowHeight>
+  <WindowWidth>16155</WindowWidth>
+  <WindowTopX>240</WindowTopX>
+  <WindowTopY>45</WindowTopY>
+  <ProtectStructure>False</ProtectStructure>
+  <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+  <Style ss:ID="Default" ss:Name="Normal">
+   <Alignment ss:Vertical="Center"/>
+   <Borders/>
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
+   <Interior/>
+   <NumberFormat/>
+   <Protection/>
+  </Style>
+  <Style ss:ID="s63" ss:Name="超链接">
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#0000FF"
+    ss:Underline="Single"/>
+  </Style>
+  <Style ss:ID="s65">
+   <NumberFormat ss:Format="Short Date"/>
+  </Style>
+  <Style ss:ID="s66">
+   <NumberFormat ss:Format="0%"/>
+  </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+3}<#else>3</#if>" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+   <Column ss:AutoFitWidth="0" ss:Width="114"/>
+   <Column ss:AutoFitWidth="0" ss:Width="95.25"/>
+   <Column ss:AutoFitWidth="0" ss:Width="93" ss:Span="1"/>
+   <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
+   <Column ss:Width="63"/>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">广告主Id:${advertiserId!} </Data></Cell>
+   </Row>
+   <Row>
+	   
+	    <Cell><Data ss:Type="String">广告主名称</Data></Cell>
+	    <Cell><Data ss:Type="String">账户余额</Data></Cell>
+	   	<Cell><Data ss:Type="String">累计分配</Data></Cell>
+	    <Cell><Data ss:Type="String">最后分配时间</Data></Cell>
+	    <Cell><Data ss:Type="String">操作</Data></Cell>
+	   </Row>
+<#if dataList ??>
+     <#list dataList as deliverAnalysis>   
+		   <Row>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.advertiserName!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.adBalance!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.sumAllocation!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.upDated?date}</Data></Cell>
+	   		<Cell><Data ss:Type="String">分配</Data></Cell> 	   			   		   		
+		   </Row>
+	 </#list>
+  </#if>   
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <Selected/>
+   <Panes>
+    <Pane>
+     <Number>3</Number>
+     <ActiveRow>7</ActiveRow>
+     <ActiveCol>8</ActiveCol>
+    </Pane>
+   </Panes>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet2">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet3">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+</Workbook>

+ 17 - 20
src/main/resources/template/excel/dataClientAccount.ftl → src/main/resources/template/excel/banner-audit.ftl

@@ -51,32 +51,29 @@
    <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
    <Column ss:Width="63"/>
    <Row>
-    <Cell ss:MergeAcross="9"><Data ss:Type="String">${accountList!} </Data></Cell>
+    <Cell ss:MergeAcross="6"><Data ss:Type="String">${accountList!} </Data></Cell>
    </Row>
    <Row>
 	   
 	   	<Cell><Data ss:Type="String">ID</Data></Cell>
-	    <Cell><Data ss:Type="String">账号 </Data></Cell>
-	    <Cell><Data ss:Type="String">公司名称 </Data></Cell>
-	    <Cell><Data ss:Type="String">联系人 </Data></Cell>
-	    <Cell><Data ss:Type="String">联系电话 </Data></Cell>
-	    <Cell><Data ss:Type="String">固定电话 </Data></Cell>
-	    <Cell><Data ss:Type="String">账号类型 </Data></Cell>
-	   	<Cell><Data ss:Type="String">状态</Data></Cell>
-	    <Cell><Data ss:Type="String">最后登录日期</Data></Cell>
+	    <Cell><Data ss:Type="String">创意 </Data></Cell>
+	    <Cell><Data ss:Type="String">创意名称 </Data></Cell>
+	    <Cell><Data ss:Type="String">创意链接</Data></Cell>
+	   	<Cell><Data ss:Type="String">尺寸</Data></Cell>
+	    <Cell><Data ss:Type="String">状态</Data></Cell>
+	    <Cell><Data ss:Type="String">最后更新时间</Data></Cell>
 	   </Row>
-<#if dataList ??>
-     <#list dataList as deliverAnalysis>   
+<#if bannerList ??>
+     <#list bannerList as banner>   
 		   <Row>
-	   		<Cell><Data ss:Type="String">${deliverAnalysis.id!}</Data></Cell>
-	    	<Cell><Data ss:Type="String">${deliverAnalysis.accountName}</Data></Cell>
-	    	<Cell><Data ss:Type="String">${deliverAnalysis.companyName!}</Data></Cell>
-	   		<Cell><Data ss:Type="String">${deliverAnalysis.linkMan!}</Data></Cell>
-	   		<Cell><Data ss:Type="String">${deliverAnalysis.mobilePhone}</Data></Cell>
-	   		<Cell><Data ss:Type="String">${deliverAnalysis.tel!}</Data></Cell>
-	   		<Cell><Data ss:Type="String"><#if deliverAnalysis.sysType==2>媒体<#elseif deliverAnalysis.sysType==3>需求方</#if></Data></Cell>
-	   		<Cell><Data ss:Type="String"><#if deliverAnalysis.status==1>正常<#else>暂停</#if></Data></Cell>
-	    	<Cell><Data ss:Type="String">${deliverAnalysis.loginTime?datetime}</Data></Cell>
+		   	
+	   		<Cell><Data ss:Type="String">${banner.id!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">image</Data></Cell>
+	    	<Cell><Data ss:Type="String">${banner.bannerTemplate.name!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${banner.visitAddress!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${banner.bannerTemplate.width!}x${banner.bannerTemplate.height!}</Data></Cell>
+	    	<Cell><Data ss:Type="String"><#if banner.checked==0>未审核<#else>已审核</#if></Data></Cell>
+	    	<Cell><Data ss:Type="String">${banner.updated?datetime}</Data></Cell>
 		   </Row>
 	 </#list>
   </#if>   

+ 130 - 0
src/main/resources/template/excel/campaignReport.ftl

@@ -0,0 +1,130 @@
+<?xml version="1.0"?>
+<?mso-application progid="Excel.Sheet"?>
+<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">
+ <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
+  <Author>adnetwork</Author>
+  <LastAuthor>adnetwork</LastAuthor>
+  <Created>2014-10-15T06:05:44Z</Created>
+  <Version>14.00</Version>
+ </DocumentProperties>
+ <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
+  <AllowPNG/>
+ </OfficeDocumentSettings>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+  <WindowHeight>5130</WindowHeight>
+  <WindowWidth>16155</WindowWidth>
+  <WindowTopX>240</WindowTopX>
+  <WindowTopY>45</WindowTopY>
+  <ProtectStructure>False</ProtectStructure>
+  <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+  <Style ss:ID="Default" ss:Name="Normal">
+   <Alignment ss:Vertical="Center"/>
+   <Borders/>
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
+   <Interior/>
+   <NumberFormat/>
+   <Protection/>
+  </Style>
+  <Style ss:ID="s63" ss:Name="超链接">
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#0000FF"
+    ss:Underline="Single"/>
+  </Style>
+  <Style ss:ID="s65">
+   <NumberFormat ss:Format="Short Date"/>
+  </Style>
+  <Style ss:ID="s66">
+   <NumberFormat ss:Format="0%"/>
+  </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+3}<#else>3</#if>" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+   <Column ss:AutoFitWidth="0" ss:Width="114"/>
+   <Column ss:AutoFitWidth="0" ss:Width="95.25"/>
+   <Column ss:AutoFitWidth="0" ss:Width="93" ss:Span="1"/>
+   <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
+   <Column ss:Width="63"/>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">广告主Id:${advertiserId!} </Data></Cell>
+   </Row>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">开始日期:${startDate!}    结束日期:${endDate!}</Data></Cell>
+   </Row>
+   <Row>
+	   
+	   	
+	    <Cell><Data ss:Type="String">订单Id</Data></Cell>
+	    <Cell><Data ss:Type="String">活动名称订单</Data></Cell>
+	    <Cell><Data ss:Type="String">活动预算</Data></Cell>
+	   	<Cell><Data ss:Type="String">投放个数</Data></Cell>
+	    <Cell><Data ss:Type="String">投放周期</Data></Cell>
+	     <Cell><Data ss:Type="String">最后更新时间</Data></Cell>
+	      <Cell><Data ss:Type="String">状态(0开启,1停用)</Data></Cell>
+	   </Row>
+<#if dataList ??>
+     <#list dataList as deliverAnalysis>   
+		   <Row>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.id!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.name!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.totalBudget!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.groupNumber!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.activeTime?date!}~${deliverAnalysis.expireTime?date!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.upDated?datetime!}</Data></Cell> 	   			   		
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.status!}</Data></Cell>   		
+		   </Row>
+	 </#list>
+  </#if>   
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <Selected/>
+   <Panes>
+    <Pane>
+     <Number>3</Number>
+     <ActiveRow>7</ActiveRow>
+     <ActiveCol>8</ActiveCol>
+    </Pane>
+   </Panes>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet2">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet3">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+</Workbook>

+ 128 - 0
src/main/resources/template/excel/consumeReport.ftl

@@ -0,0 +1,128 @@
+<?xml version="1.0"?>
+<?mso-application progid="Excel.Sheet"?>
+<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">
+ <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
+  <Author>adnetwork</Author>
+  <LastAuthor>adnetwork</LastAuthor>
+  <Created>2014-10-15T06:05:44Z</Created>
+  <Version>14.00</Version>
+ </DocumentProperties>
+ <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
+  <AllowPNG/>
+ </OfficeDocumentSettings>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+  <WindowHeight>5130</WindowHeight>
+  <WindowWidth>16155</WindowWidth>
+  <WindowTopX>240</WindowTopX>
+  <WindowTopY>45</WindowTopY>
+  <ProtectStructure>False</ProtectStructure>
+  <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+  <Style ss:ID="Default" ss:Name="Normal">
+   <Alignment ss:Vertical="Center"/>
+   <Borders/>
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
+   <Interior/>
+   <NumberFormat/>
+   <Protection/>
+  </Style>
+  <Style ss:ID="s63" ss:Name="超链接">
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#0000FF"
+    ss:Underline="Single"/>
+  </Style>
+  <Style ss:ID="s65">
+   <NumberFormat ss:Format="Short Date"/>
+  </Style>
+  <Style ss:ID="s66">
+   <NumberFormat ss:Format="0%"/>
+  </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+3}<#else>3</#if>" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+   <Column ss:AutoFitWidth="0" ss:Width="114"/>
+   <Column ss:AutoFitWidth="0" ss:Width="95.25"/>
+   <Column ss:AutoFitWidth="0" ss:Width="93" ss:Span="1"/>
+   <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
+   <Column ss:Width="63"/>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">广告主Id:${advertiserId!} </Data></Cell>
+   </Row>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">开始日期:${startDate!}    结束日期:${endDate!}</Data></Cell>
+   </Row>
+   <Row>
+	   
+	   	
+	    <Cell><Data ss:Type="String">时间(日期)</Data></Cell>
+	    <Cell><Data ss:Type="String">广告主名称</Data></Cell>
+	    <Cell><Data ss:Type="String">交易号</Data></Cell>
+	   	<Cell><Data ss:Type="String">费用类型</Data></Cell>
+	    <Cell><Data ss:Type="String">金额</Data></Cell>
+	     <Cell><Data ss:Type="String">余额</Data></Cell>
+	   </Row>
+<#if dataList ??>
+     <#list dataList as deliverAnalysis>   
+		   <Row>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.actTime?date!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.advertiserName!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.num!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.type!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.cash!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.balance!}</Data></Cell> 	   			   		   		
+		   </Row>
+	 </#list>
+  </#if>   
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <Selected/>
+   <Panes>
+    <Pane>
+     <Number>3</Number>
+     <ActiveRow>7</ActiveRow>
+     <ActiveCol>8</ActiveCol>
+    </Pane>
+   </Panes>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet2">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet3">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+</Workbook>

+ 0 - 0
src/main/resources/template/excel/dataReport.ftl → src/main/resources/template/excel/dataReportBack.ftl


+ 136 - 0
src/main/resources/template/excel/dataReportOperator.ftl

@@ -0,0 +1,136 @@
+<?xml version="1.0"?>
+<?mso-application progid="Excel.Sheet"?>
+<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">
+ <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
+  <Author>adnetwork</Author>
+  <LastAuthor>adnetwork</LastAuthor>
+  <Created>2014-10-15T06:05:44Z</Created>
+  <Version>14.00</Version>
+ </DocumentProperties>
+ <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
+  <AllowPNG/>
+ </OfficeDocumentSettings>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+  <WindowHeight>5130</WindowHeight>
+  <WindowWidth>16155</WindowWidth>
+  <WindowTopX>240</WindowTopX>
+  <WindowTopY>45</WindowTopY>
+  <ProtectStructure>False</ProtectStructure>
+  <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+  <Style ss:ID="Default" ss:Name="Normal">
+   <Alignment ss:Vertical="Center"/>
+   <Borders/>
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
+   <Interior/>
+   <NumberFormat/>
+   <Protection/>
+  </Style>
+  <Style ss:ID="s63" ss:Name="超链接">
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#0000FF"
+    ss:Underline="Single"/>
+  </Style>
+  <Style ss:ID="s65">
+   <NumberFormat ss:Format="Short Date"/>
+  </Style>
+  <Style ss:ID="s66">
+   <NumberFormat ss:Format="0%"/>
+  </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+3}<#else>3</#if>" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+   <Column ss:AutoFitWidth="0" ss:Width="114"/>
+   <Column ss:AutoFitWidth="0" ss:Width="95.25"/>
+   <Column ss:AutoFitWidth="0" ss:Width="93" ss:Span="1"/>
+   <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
+   <Column ss:Width="63"/>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">广告位:${zoneName!} </Data></Cell>
+   </Row>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">开始日期:${startDate!}    结束日期:${endDate!}</Data></Cell>
+   </Row>
+   <Row>
+	    <Cell><Data ss:Type="String">日期</Data></Cell>
+	   	<Cell><Data ss:Type="String">PV</Data></Cell>
+	    <Cell><Data ss:Type="String">UV</Data></Cell>
+	    <Cell><Data ss:Type="String">广告曝光数</Data></Cell>
+	    <Cell><Data ss:Type="String">广告唯一曝光数</Data></Cell>
+	    <Cell><Data ss:Type="String">广告填充率</Data></Cell>
+	   	<Cell><Data ss:Type="String">广告点击数</Data></Cell>
+	   	<Cell><Data ss:Type="String">广告唯一点击数</Data></Cell>
+	    <Cell><Data ss:Type="String">广告点击率</Data></Cell>
+	    <Cell><Data ss:Type="String">eCPM</Data></Cell>
+	    <Cell><Data ss:Type="String">收入</Data></Cell>
+   </Row>
+<#if dataList ??>
+     <#list dataList as deliverAnalysis>   
+		   <Row>
+		   	 <Cell><Data ss:Type="String">${deliverAnalysis.reportDate?string('yyyy/MM/dd')}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.pv!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.uv!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.impression!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.uImpression!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.fillRate!}%</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.click!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.uClick!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.clickRate!}%</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.eCpm!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.income!}</Data></Cell>
+		   </Row>
+	 </#list>
+  </#if>   
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <Selected/>
+   <Panes>
+    <Pane>
+     <Number>3</Number>
+     <ActiveRow>7</ActiveRow>
+     <ActiveCol>8</ActiveCol>
+    </Pane>
+   </Panes>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet2">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet3">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+</Workbook>

+ 0 - 0
src/main/resources/template/excel/dataRequestReport.ftl → src/main/resources/template/excel/dataRequestReportBack.ftl


+ 121 - 0
src/main/resources/template/excel/financeListExcel.ftl

@@ -0,0 +1,121 @@
+<?xml version="1.0"?>
+<?mso-application progid="Excel.Sheet"?>
+<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">
+ <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
+  <Author>adnetwork</Author>
+  <LastAuthor>adnetwork</LastAuthor>
+  <Created>2014-10-15T06:05:44Z</Created>
+  <Version>14.00</Version>
+ </DocumentProperties>
+ <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
+  <AllowPNG/>
+ </OfficeDocumentSettings>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+  <WindowHeight>5130</WindowHeight>
+  <WindowWidth>16155</WindowWidth>
+  <WindowTopX>240</WindowTopX>
+  <WindowTopY>45</WindowTopY>
+  <ProtectStructure>False</ProtectStructure>
+  <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+  <Style ss:ID="Default" ss:Name="Normal">
+   <Alignment ss:Vertical="Center"/>
+   <Borders/>
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
+   <Interior/>
+   <NumberFormat/>
+   <Protection/>
+  </Style>
+  <Style ss:ID="s63" ss:Name="超链接">
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#0000FF"
+    ss:Underline="Single"/>
+  </Style>
+  <Style ss:ID="s65">
+   <NumberFormat ss:Format="Short Date"/>
+  </Style>
+  <Style ss:ID="s66">
+   <NumberFormat ss:Format="0%"/>
+  </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+2}<#else>2</#if>" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+   <Column ss:AutoFitWidth="0" ss:Width="114"/>
+   <Column ss:AutoFitWidth="0" ss:Width="95.25"/>
+   <Column ss:AutoFitWidth="0" ss:Width="93" ss:Span="1"/>
+   <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
+   <Column ss:Width="63"/>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">开始日期:${startDate!}    结束日期:${endDate!}</Data></Cell>
+   </Row>
+   <Row>
+	    <Cell><Data ss:Type="String">日期</Data></Cell>
+	    <Cell><Data ss:Type="String">广告曝光数</Data></Cell>
+	   	<Cell><Data ss:Type="String">广告点击数</Data></Cell>
+	    <Cell><Data ss:Type="String">eCPM</Data></Cell>
+	    <Cell><Data ss:Type="String">收入</Data></Cell>
+   </Row>
+<#if dataList ??>
+     <#list dataList as deliverAnalysis>   
+		   <Row>
+		   	 <Cell><Data ss:Type="String">${deliverAnalysis.date?string('yyyy/MM/dd')}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.impression!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.click!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.ecpm!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.income!}</Data></Cell>
+		   </Row>
+	 </#list>
+  </#if>   
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <Selected/>
+   <Panes>
+    <Pane>
+     <Number>3</Number>
+     <ActiveRow>7</ActiveRow>
+     <ActiveCol>8</ActiveCol>
+    </Pane>
+   </Panes>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet2">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet3">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+</Workbook>

+ 118 - 0
src/main/resources/template/excel/financeWithdrawDepositExcel.ftl

@@ -0,0 +1,118 @@
+<?xml version="1.0"?>
+<?mso-application progid="Excel.Sheet"?>
+<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">
+ <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
+  <Author>adnetwork</Author>
+  <LastAuthor>adnetwork</LastAuthor>
+  <Created>2014-10-15T06:05:44Z</Created>
+  <Version>14.00</Version>
+ </DocumentProperties>
+ <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
+  <AllowPNG/>
+ </OfficeDocumentSettings>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+  <WindowHeight>5130</WindowHeight>
+  <WindowWidth>16155</WindowWidth>
+  <WindowTopX>240</WindowTopX>
+  <WindowTopY>45</WindowTopY>
+  <ProtectStructure>False</ProtectStructure>
+  <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+  <Style ss:ID="Default" ss:Name="Normal">
+   <Alignment ss:Vertical="Center"/>
+   <Borders/>
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
+   <Interior/>
+   <NumberFormat/>
+   <Protection/>
+  </Style>
+  <Style ss:ID="s63" ss:Name="超链接">
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#0000FF"
+    ss:Underline="Single"/>
+  </Style>
+  <Style ss:ID="s65">
+   <NumberFormat ss:Format="Short Date"/>
+  </Style>
+  <Style ss:ID="s66">
+   <NumberFormat ss:Format="0%"/>
+  </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+1}<#else>1</#if>" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+   <Column ss:AutoFitWidth="0" ss:Width="114"/>
+   <Column ss:AutoFitWidth="0" ss:Width="95.25"/>
+   <Column ss:AutoFitWidth="0" ss:Width="93" ss:Span="1"/>
+   <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
+   <Column ss:Width="63"/>
+   <Row>
+	    <Cell><Data ss:Type="String">日期</Data></Cell>
+	    <Cell><Data ss:Type="String">交易号</Data></Cell>
+	   	<Cell><Data ss:Type="String">提现状态</Data></Cell>
+	    <Cell><Data ss:Type="String">提现金额</Data></Cell>
+	    <Cell><Data ss:Type="String">可提现金额</Data></Cell>
+   </Row>
+<#if dataList ??>
+     <#list dataList as rptZone>   
+		   <Row>
+		   	 <Cell><Data ss:Type="String">${rptZone.actTime?string('yyyy/MM/dd')}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${rptZone.num!}</Data></Cell>
+	   		<Cell><Data ss:Type="String"><#if rptZone.state==1>申请中<#elseif rptZone.state==2>审核不通过<#elseif rptZone.state==3>已提现</#if></Data></Cell>
+	    	<Cell><Data ss:Type="String">${rptZone.amount!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${rptZone.balance!}</Data></Cell>
+		   </Row>
+	 </#list>
+  </#if>   
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <Selected/>
+   <Panes>
+    <Pane>
+     <Number>3</Number>
+     <ActiveRow>7</ActiveRow>
+     <ActiveCol>8</ActiveCol>
+    </Pane>
+   </Panes>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet2">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet3">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+</Workbook>

+ 15 - 16
src/main/resources/template/excel/dataAccount.ftl → src/main/resources/template/excel/logReport.ftl

@@ -43,7 +43,7 @@
   </Style>
  </Styles>
  <Worksheet ss:Name="Sheet1">
-  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+2}<#else>2</#if>" x:FullColumns="1"
+  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+3}<#else>3</#if>" x:FullColumns="1"
    x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
    <Column ss:AutoFitWidth="0" ss:Width="114"/>
    <Column ss:AutoFitWidth="0" ss:Width="95.25"/>
@@ -51,27 +51,26 @@
    <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
    <Column ss:Width="63"/>
    <Row>
-    <Cell ss:MergeAcross="6"><Data ss:Type="String">${accountList!} </Data></Cell>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">修改记录:${advertiserId!} </Data></Cell>
    </Row>
    <Row>
-	   
-	   	<Cell><Data ss:Type="String">ID</Data></Cell>
-	    <Cell><Data ss:Type="String">账号 </Data></Cell>
-	    <Cell><Data ss:Type="String">姓名 </Data></Cell>
-	    <Cell><Data ss:Type="String">联系电话 </Data></Cell>
-	   	<Cell><Data ss:Type="String">状态</Data></Cell>
-	    <Cell><Data ss:Type="String">最后登录日期</Data></Cell>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">开始日期:${startDate!}    结束日期:${endDate!}</Data></Cell>
+   </Row>
+  	 <Row>
+	    <Cell><Data ss:Type="String">变更时间</Data></Cell>
+	    <Cell><Data ss:Type="String">操作人</Data></Cell>
+	    <Cell><Data ss:Type="String">登录IP</Data></Cell>
+	   	<Cell><Data ss:Type="String">操作类型</Data></Cell>
+	    <Cell><Data ss:Type="String">变更详情</Data></Cell>
 	   </Row>
 <#if dataList ??>
      <#list dataList as deliverAnalysis>   
 		   <Row>
-		   	
-	   		<Cell><Data ss:Type="String">${deliverAnalysis.id!}</Data></Cell>
-	    	<Cell><Data ss:Type="String">${deliverAnalysis.accountName}</Data></Cell>
-	    	<Cell><Data ss:Type="String">${deliverAnalysis.realName!}</Data></Cell>
-	   		<Cell><Data ss:Type="String">${deliverAnalysis.tel!}</Data></Cell>
-	    	<Cell><Data ss:Type="String"><#if deliverAnalysis.state=="1">正常<#else>暂停</#if></Data></Cell>
-	    	<Cell><Data ss:Type="String">${deliverAnalysis.createTime?datetime}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.operTime?datetime}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.accountName!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.userIp!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.actionType!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.action!}</Data></Cell> 
 		   </Row>
 	 </#list>
   </#if>   

+ 121 - 0
src/main/resources/template/excel/logReportOperator.ftl

@@ -0,0 +1,121 @@
+<?xml version="1.0"?>
+<?mso-application progid="Excel.Sheet"?>
+<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">
+ <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
+  <Author>adnetwork</Author>
+  <LastAuthor>adnetwork</LastAuthor>
+  <Created>2014-10-15T06:05:44Z</Created>
+  <Version>14.00</Version>
+ </DocumentProperties>
+ <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
+  <AllowPNG/>
+ </OfficeDocumentSettings>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+  <WindowHeight>5130</WindowHeight>
+  <WindowWidth>16155</WindowWidth>
+  <WindowTopX>240</WindowTopX>
+  <WindowTopY>45</WindowTopY>
+  <ProtectStructure>False</ProtectStructure>
+  <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+  <Style ss:ID="Default" ss:Name="Normal">
+   <Alignment ss:Vertical="Center"/>
+   <Borders/>
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
+   <Interior/>
+   <NumberFormat/>
+   <Protection/>
+  </Style>
+  <Style ss:ID="s63" ss:Name="超链接">
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#0000FF"
+    ss:Underline="Single"/>
+  </Style>
+  <Style ss:ID="s65">
+   <NumberFormat ss:Format="Short Date"/>
+  </Style>
+  <Style ss:ID="s66">
+   <NumberFormat ss:Format="0%"/>
+  </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+2}<#else>2</#if>" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+   <Column ss:AutoFitWidth="0" ss:Width="114"/>
+   <Column ss:AutoFitWidth="0" ss:Width="95.25"/>
+   <Column ss:AutoFitWidth="0" ss:Width="93" ss:Span="1"/>
+   <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
+   <Column ss:Width="63"/>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">运营商Id:${operatorId!} </Data></Cell>
+   </Row>
+  	 <Row>
+	    <Cell><Data ss:Type="String">变更时间</Data></Cell>
+	    <Cell><Data ss:Type="String">操作人</Data></Cell>
+	    <Cell><Data ss:Type="String">登录IP</Data></Cell>
+	   	<Cell><Data ss:Type="String">操作类型</Data></Cell>
+	    <Cell><Data ss:Type="String">变更详情</Data></Cell>
+	   </Row>
+<#if dataList ??>
+     <#list dataList as log>   
+		   <Row>
+	    	<Cell><Data ss:Type="String">${log.operTime?datetime}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${log.accountName!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${log.userIp!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${log.actionType!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${log.action!}</Data></Cell> 
+		   </Row>
+	 </#list>
+  </#if>   
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <Selected/>
+   <Panes>
+    <Pane>
+     <Number>3</Number>
+     <ActiveRow>7</ActiveRow>
+     <ActiveCol>8</ActiveCol>
+    </Pane>
+   </Panes>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet2">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet3">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+</Workbook>

+ 128 - 0
src/main/resources/template/excel/orderReport.ftl

@@ -0,0 +1,128 @@
+<?xml version="1.0"?>
+<?mso-application progid="Excel.Sheet"?>
+<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:o="urn:schemas-microsoft-com:office:office"
+ xmlns:x="urn:schemas-microsoft-com:office:excel"
+ xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
+ xmlns:html="http://www.w3.org/TR/REC-html40">
+ <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
+  <Author>adnetwork</Author>
+  <LastAuthor>adnetwork</LastAuthor>
+  <Created>2014-10-15T06:05:44Z</Created>
+  <Version>14.00</Version>
+ </DocumentProperties>
+ <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
+  <AllowPNG/>
+ </OfficeDocumentSettings>
+ <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
+  <WindowHeight>5130</WindowHeight>
+  <WindowWidth>16155</WindowWidth>
+  <WindowTopX>240</WindowTopX>
+  <WindowTopY>45</WindowTopY>
+  <ProtectStructure>False</ProtectStructure>
+  <ProtectWindows>False</ProtectWindows>
+ </ExcelWorkbook>
+ <Styles>
+  <Style ss:ID="Default" ss:Name="Normal">
+   <Alignment ss:Vertical="Center"/>
+   <Borders/>
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#000000"/>
+   <Interior/>
+   <NumberFormat/>
+   <Protection/>
+  </Style>
+  <Style ss:ID="s63" ss:Name="超链接">
+   <Font ss:FontName="宋体" x:CharSet="134" ss:Size="11" ss:Color="#0000FF"
+    ss:Underline="Single"/>
+  </Style>
+  <Style ss:ID="s65">
+   <NumberFormat ss:Format="Short Date"/>
+  </Style>
+  <Style ss:ID="s66">
+   <NumberFormat ss:Format="0%"/>
+  </Style>
+ </Styles>
+ <Worksheet ss:Name="Sheet1">
+  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+3}<#else>3</#if>" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+   <Column ss:AutoFitWidth="0" ss:Width="114"/>
+   <Column ss:AutoFitWidth="0" ss:Width="95.25"/>
+   <Column ss:AutoFitWidth="0" ss:Width="93" ss:Span="1"/>
+   <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
+   <Column ss:Width="63"/>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">广告主Id:${advertiserId!} </Data></Cell>
+   </Row>
+   <Row>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">开始日期:${startDate!}    结束日期:${endDate!}</Data></Cell>
+   </Row>
+   <Row>
+	   
+	   	
+	    <Cell><Data ss:Type="String">订单名称</Data></Cell>
+	    <Cell><Data ss:Type="String">订单预算</Data></Cell>
+	    <Cell><Data ss:Type="String">活动个数</Data></Cell>
+	   	<Cell><Data ss:Type="String">状态(0开启,1停用)</Data></Cell>
+	    <Cell><Data ss:Type="String">最后更新日期</Data></Cell>
+	   </Row>
+<#if dataList ??>
+     <#list dataList as deliverAnalysis>   
+		   <Row>
+		   	
+	   		
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.name!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.budget!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.campaignNumber!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.status!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.updated?datetime}</Data></Cell> 
+		   </Row>
+	 </#list>
+  </#if>   
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <Selected/>
+   <Panes>
+    <Pane>
+     <Number>3</Number>
+     <ActiveRow>7</ActiveRow>
+     <ActiveCol>8</ActiveCol>
+    </Pane>
+   </Panes>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet2">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+ <Worksheet ss:Name="Sheet3">
+  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1" x:FullColumns="1"
+   x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
+  </Table>
+  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
+   <PageSetup>
+    <Header x:Margin="0.3"/>
+    <Footer x:Margin="0.3"/>
+    <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
+   </PageSetup>
+   <ProtectObjects>False</ProtectObjects>
+   <ProtectScenarios>False</ProtectScenarios>
+  </WorksheetOptions>
+ </Worksheet>
+</Workbook>

+ 0 - 0
src/main/resources/template/excel/otherReport.ftl → src/main/resources/template/excel/otherReportBack.ftl


+ 39 - 54
src/main/resources/template/excel/otherRequestReport.ftl → src/main/resources/template/excel/otherReportOperator.ftl

@@ -43,7 +43,7 @@
   </Style>
  </Styles>
  <Worksheet ss:Name="Sheet1">
-  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+4}<#else>4</#if>" x:FullColumns="1"
+  <Table ss:ExpandedColumnCount="${column!}" ss:ExpandedRowCount="<#if dataSize??>${dataSize+2}<#else>2</#if>" x:FullColumns="1"
    x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="13.5">
    <Column ss:AutoFitWidth="0" ss:Width="114"/>
    <Column ss:AutoFitWidth="0" ss:Width="95.25"/>
@@ -54,62 +54,47 @@
     <Cell ss:MergeAcross="9"><Data ss:Type="String">开始日期:${startDate!}    结束日期:${endDate!}</Data></Cell>
    </Row>
    <Row>
-    <Cell ss:MergeAcross="9"><Data ss:Type="String">广告主:<#if advertiserName??>${advertiserName}</#if>   订单:<#if orderName??>${orderName}</#if>    活动:<#if campaignName??>${campaignName}</#if>    投放:<#if adGroupName??>${adGroupName}</#if></Data></Cell>
+   		<#if size??><Cell><Data ss:Type="String">尺寸</Data></Cell></#if>
+   		<#if position??><Cell><Data ss:Type="String">位置</Data></Cell></#if>
+   		<#if system??><Cell><Data ss:Type="String">系统</Data></Cell></#if>
+   		<#if device??><Cell><Data ss:Type="String">类型</Data></Cell></#if>
+   		<#if location??><Cell><Data ss:Type="String">地域</Data></Cell></#if>
+   		<#if place??><Cell><Data ss:Type="String">场景</Data></Cell></#if>
+   		<#if apmac??><Cell><Data ss:Type="String">热点</Data></Cell></#if>
+	    <Cell><Data ss:Type="String">流量占比</Data></Cell>
+	   	<Cell><Data ss:Type="String">PV</Data></Cell>
+	    <Cell><Data ss:Type="String">UV</Data></Cell>
+	    <Cell><Data ss:Type="String">广告曝光数</Data></Cell>
+	     <Cell><Data ss:Type="String">广告唯一曝光数</Data></Cell>
+	    <Cell><Data ss:Type="String">广告填充率</Data></Cell>
+	   	<Cell><Data ss:Type="String">广告点击数</Data></Cell>
+	   	<Cell><Data ss:Type="String">广告唯一点击数</Data></Cell>
+	    <Cell><Data ss:Type="String">广告点击率</Data></Cell>
+	    <Cell><Data ss:Type="String">eCPM</Data></Cell>
+	    <Cell><Data ss:Type="String">收入</Data></Cell>
    </Row>
-   <Row>
-   	<Cell><Data ss:Type="String"></Data></Cell>
-   	<#if impression??><Cell ss:MergeAcross="1"><Data ss:Type="String">曝光</Data></Cell></#if>
-   	<#if click??><Cell ss:MergeAcross="1"><Data ss:Type="String">点击</Data></Cell></#if>
-   	<#if visit??><Cell ss:MergeAcross="1"><Data ss:Type="String">到达</Data></Cell></#if>
-   	<#if conversion??><Cell ss:MergeAcross="1"><Data ss:Type="String">转化</Data></Cell></#if>
-   	<#if consume??><Cell ss:MergeAcross="1"><Data ss:Type="String">花费</Data></Cell></#if>
-   </Row>
-   <Row>
-   	
-   	<Cell><Data ss:Type="String"></Data></Cell>
-   	
-   	<#if impression??><Cell><Data ss:Type="String">曝光占比</Data></Cell></#if>
-	<#if impression??><Cell><Data ss:Type="String">曝光数</Data></Cell></#if>
-		
-	<#if click??><Cell><Data ss:Type="String">点击数</Data></Cell></#if>
-	<#if click??><Cell><Data ss:Type="String">点击率</Data></Cell></#if>
-		
-	<#if visit??><Cell><Data ss:Type="String">到达数</Data></Cell></#if>
-	<#if visit??><Cell><Data ss:Type="String">到达率</Data></Cell></#if>
-	    
-	<#if conversion??><Cell><Data ss:Type="String">转化数</Data></Cell></#if>
-	<#if conversion??><Cell><Data ss:Type="String">转化率</Data></Cell></#if>
-	     
-	<#if consume??><Cell><Data ss:Type="String">eCPM</Data></Cell></#if>
-	<#if consume??><Cell><Data ss:Type="String">花费</Data></Cell></#if>
-   
-   </Row>
-   
 <#if dataList ??>
      <#list dataList as deliverAnalysis>   
-	<Row>
-	<#if location??>
-	<Cell><Data ss:Type="String">${deliverAnalysis.location!}</Data></Cell>
-   	</#if>
-   	<#if system??><Cell><Data ss:Type="String">${deliverAnalysis.system!}</Data></Cell></#if>
-   	<#if place??><Cell><Data ss:Type="String">${deliverAnalysis.place!}</Data></Cell></#if>
-   	
-   	<#if impression??><Cell><Data ss:Type="String">${deliverAnalysis.impressionRate!}%</Data></Cell></#if>
-   	<#if impression??><Cell><Data ss:Type="String">${deliverAnalysis.impression!}</Data></Cell></#if>
-		
-	<#if click??><Cell><Data ss:Type="String">${deliverAnalysis.click!}</Data></Cell></#if>
-	<#if click??><Cell><Data ss:Type="String">${deliverAnalysis.clickRate!}%</Data></Cell></#if>
-			
-	<#if visit??><Cell><Data ss:Type="String">${deliverAnalysis.visit!}</Data></Cell></#if>
-	<#if visit??><Cell><Data ss:Type="String">${deliverAnalysis.visitRate!}%</Data></Cell></#if>
-			
-	<#if conversion??><Cell><Data ss:Type="String">${deliverAnalysis.conversion!}</Data></Cell></#if>
-	<#if conversion??><Cell><Data ss:Type="String">${deliverAnalysis.conversionRate!}%</Data></Cell></#if>
-	     	
-	<#if consume??><Cell><Data ss:Type="String">${deliverAnalysis.eCmp!}</Data></Cell></#if>
-	<#if consume??><Cell><Data ss:Type="String">${deliverAnalysis.consume!}</Data></Cell></#if>
-   	
-   </Row>
+		   <Row>
+		   	<#if apmac??><Cell><Data ss:Type="String">${deliverAnalysis.apmac!}</Data></Cell></#if>
+		   	<#if size??><Cell><Data ss:Type="String">${deliverAnalysis.width!}×${deliverAnalysis.height!}</Data></Cell></#if>
+   			<#if position??><Cell><Data ss:Type="String"><#if deliverAnalysis.position==1>认证<#elseif deliverAnalysis.position==2>跳转<#elseif deliverAnalysis.position==3>上网过程</#if></Data></Cell></#if>
+   			<#if system??><Cell><Data ss:Type="String"><#if deliverAnalysis.system==1>windows<#elseif deliverAnalysis.system==2>ios<#elseif deliverAnalysis.system==3>android<#elseif deliverAnalysis.system==4>mac<#elseif deliverAnalysis.system==5>wp<#elseif deliverAnalysis.system==6>other</#if></Data></Cell></#if>
+   			<#if device??><Cell><Data ss:Type="String"><#if deliverAnalysis.device==1>网页<#else>app</#if></Data></Cell></#if>
+   			<#if location??><Cell><Data ss:Type="String">${deliverAnalysis.cn_city!}</Data></Cell></#if>
+   			<#if place??><Cell><Data ss:Type="String">${deliverAnalysis.place!}</Data></Cell></#if>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.viewRate!}%</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.pv!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.uv!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.impression!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.uImpression!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.fillRate!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.click!}</Data></Cell>
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.uClick!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.clickRate!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.eCpm!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.income!}</Data></Cell>
+		   </Row>
 	 </#list>
   </#if>   
   </Table>

+ 5 - 9
src/main/resources/template/excel/deposit.ftl → src/main/resources/template/excel/relationship.ftl

@@ -51,18 +51,14 @@
    <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
    <Column ss:Width="63"/>
    <Row>
-	    <Cell><Data ss:Type="String">日期</Data></Cell>
-	   	<Cell><Data ss:Type="String">广告主/代理商</Data></Cell>
-	    <Cell><Data ss:Type="String">充值金额</Data></Cell>
-	    <Cell><Data ss:Type="String">余额</Data></Cell>
+	    <Cell><Data ss:Type="String">场景</Data></Cell>
+	   	<Cell><Data ss:Type="String">数聚场景</Data></Cell>
    </Row>
 <#if dataList ??>
-     <#list dataList as data>   
+     <#list dataList as placeOperator>   
 		   <Row>
-		   	 <Cell><Data ss:Type="String">${data.actTime?string('yyyy/MM/dd')}</Data></Cell>
-	   		<Cell><Data ss:Type="String">${data.agentName!}</Data></Cell>
-	    	<Cell><Data ss:Type="String">${data.charge!}</Data></Cell>
-	    	<Cell><Data ss:Type="String">${data.balance!}</Data></Cell>
+		   <Cell><Data ss:Type="String">${placeOperator.name!}</Data></Cell>
+		   <Cell><Data ss:Type="String">${placeOperator.placeName!}</Data></Cell>
 		   </Row>
 	 </#list>
   </#if>   

+ 16 - 21
src/main/resources/template/excel/auditBanner.ftl → src/main/resources/template/excel/zone.ftl

@@ -51,34 +51,29 @@
    <Column ss:Index="5" ss:AutoFitWidth="0" ss:Width="74.25"/>
    <Column ss:Width="63"/>
    <Row>
-    <Cell ss:MergeAcross="9"><Data ss:Type="String">素材审核: </Data></Cell>
+    <Cell ss:MergeAcross="9"><Data ss:Type="String">广告位:${zoneName!} </Data></Cell>
    </Row>
    <Row>
-    <Cell ss:MergeAcross="9"><Data ss:Type="String">下载日期:${downTime!} </Data></Cell>
+    <!--  <Cell ss:MergeAcross="9"><Data ss:Type="String">开始日期:${startDate!}    结束日期:${endDate!}</Data></Cell>-->
    </Row>
    <Row>
-   <Cell><Data ss:Type="String">id</Data></Cell>
-	    <Cell><Data ss:Type="String">创意</Data></Cell>
-	   	<Cell><Data ss:Type="String">创意名称</Data></Cell>
-	    <Cell><Data ss:Type="String">创意链接</Data></Cell>
+	   
+	   	<Cell><Data ss:Type="String">广告位名称</Data></Cell>
 	    <Cell><Data ss:Type="String">尺寸</Data></Cell>
-	    <Cell><Data ss:Type="String">行业</Data></Cell>
-	    <Cell><Data ss:Type="String">广告主</Data></Cell>
+	    <Cell><Data ss:Type="String">类型</Data></Cell>
+	    <Cell><Data ss:Type="String">位置</Data></Cell>
 	   	<Cell><Data ss:Type="String">状态</Data></Cell>
-	   	<Cell><Data ss:Type="String">最后更新时间</Data></Cell>
-   </Row>
-<#if auditBannerList ??>
-     <#list auditBannerList as auditBanner>   
+	   
+	   </Row>
+<#if dataList ??>
+     <#list dataList as deliverAnalysis>   
 		   <Row>
-		   <Cell><Data ss:Type="String">${auditBanner.id!}</Data></Cell>
-		   	 <Cell><Data ss:Type="String">${auditBanner.bannerTemplate.path!}</Data></Cell>
-	   		<Cell><Data ss:Type="String">${auditBanner.bannerTemplate.name!}</Data></Cell>
-	    	<Cell><Data ss:Type="String">${auditBanner.visitAddress!}</Data></Cell>
-	    	<Cell><Data ss:Type="String">${auditBanner.bannerTemplate.width!}x${auditBanner.bannerTemplate.height!}</Data></Cell>
-	    	<Cell><Data ss:Type="String">${auditBanner.industryName!}</Data></Cell>
-	   		<Cell><Data ss:Type="String">${auditBanner.advertiserName!}</Data></Cell>
-	   		<Cell><Data ss:Type="String"><#if auditBanner.checked == 0>未审核<#else>已审核</#if></Data></Cell>
-	    	<Cell><Data ss:Type="String">${auditBanner.updated?datetime}</Data></Cell>
+		   	
+	   		<Cell><Data ss:Type="String">${deliverAnalysis.name!}</Data></Cell>
+	    	<Cell><Data ss:Type="String">${deliverAnalysis.width!}X${deliverAnalysis.height!}</Data></Cell>
+	    	<Cell><Data ss:Type="String"><#if deliverAnalysis.device==1>网页<#else>APP</#if></Data></Cell>
+	   		<Cell><Data ss:Type="String"><#if deliverAnalysis.position==1>认证页<#elseif deliverAnalysis.position==2>跳转页<#elseif deliverAnalysis.position==3>上网过程</#if></Data></Cell>
+	    	<Cell><Data ss:Type="String"><#if deliverAnalysis.status==0>开启<#else>停用</#if></Data></Cell>
 		   </Row>
 	 </#list>
   </#if>