26a5b9b9f2994d0a93a3770e2df59f20.jrxml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Created with Jaspersoft Studio version 6.4.0.final using JasperReports Library version 6.4.1 -->
  3. <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="952e51b598c84be380da2b5794365cd8" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="39cf1b59-0a1c-4815-bad2-35e376b5b038">
  4. <property name="com.jaspersoft.studio.data.sql.tables" value=""/>
  5. <property name="com.jaspersoft.studio.data.defaultdataadapter" value="l_fsm5"/>
  6. <style name="Table_TH" mode="Opaque" backcolor="#F0F8FF">
  7. <box>
  8. <pen lineWidth="0.5" lineColor="#000000"/>
  9. <topPen lineWidth="0.5" lineColor="#000000"/>
  10. <leftPen lineWidth="0.5" lineColor="#000000"/>
  11. <bottomPen lineWidth="0.5" lineColor="#000000"/>
  12. <rightPen lineWidth="0.5" lineColor="#000000"/>
  13. </box>
  14. </style>
  15. <style name="Table_CH" mode="Opaque" backcolor="#BFE1FF">
  16. <box>
  17. <pen lineWidth="0.5" lineColor="#000000"/>
  18. <topPen lineWidth="0.5" lineColor="#000000"/>
  19. <leftPen lineWidth="0.5" lineColor="#000000"/>
  20. <bottomPen lineWidth="0.5" lineColor="#000000"/>
  21. <rightPen lineWidth="0.5" lineColor="#000000"/>
  22. </box>
  23. </style>
  24. <style name="Table_TD" mode="Opaque" backcolor="#FFFFFF">
  25. <box>
  26. <pen lineWidth="0.5" lineColor="#000000"/>
  27. <topPen lineWidth="0.5" lineColor="#000000"/>
  28. <leftPen lineWidth="0.5" lineColor="#000000"/>
  29. <bottomPen lineWidth="0.5" lineColor="#000000"/>
  30. <rightPen lineWidth="0.5" lineColor="#000000"/>
  31. </box>
  32. </style>
  33. <subDataset name="Dataset1" uuid="a0d90d55-cf18-4fdf-b40e-71f61fe2c412">
  34. <property name="com.jaspersoft.studio.data.sql.tables" value=""/>
  35. <property name="com.jaspersoft.studio.data.defaultdataadapter" value="l_mysql"/>
  36. <property name="com.jaspersoft.studio.data.sql.SQLQueryDesigner.sash.w1" value="198"/>
  37. <property name="com.jaspersoft.studio.data.sql.SQLQueryDesigner.sash.w2" value="794"/>
  38. <parameter name="StartDate" class="java.lang.String">
  39. <defaultValueExpression><![CDATA[$P{StartDate}]]></defaultValueExpression>
  40. </parameter>
  41. <parameter name="EndDate" class="java.lang.String">
  42. <defaultValueExpression><![CDATA[$P{EndDate}]]></defaultValueExpression>
  43. </parameter>
  44. <queryString language="SQL">
  45. <![CDATA[SELECT count(*) cnt, t_web.columnid, t_column.columnname,sum(imgnum) imgnums,sum(wordnum) wordnums,sum(RelatingNum) RelatingNums FROM t_web INNER JOIN t_column ON t_column.ColumnID = t_web.ColumnID WHERE t_web.tstate = 'finished' and releasetime>= $P{StartDate} and releasetime<= $P{EndDate} GROUP BY t_web.columnid, t_web.ColumnName ORDER BY cnt DESC]]>
  46. </queryString>
  47. <field name="cnt" class="java.lang.Long"/>
  48. <field name="columnid" class="java.lang.String"/>
  49. <field name="columnname" class="java.lang.String"/>
  50. <field name="imgnums" class="java.lang.Long"/>
  51. <field name="wordnums" class="java.lang.Long"/>
  52. <field name="RelatingNums" class="java.lang.Long"/>
  53. </subDataset>
  54. <parameter name="StartDate" class="java.lang.String"/>
  55. <parameter name="EndDate" class="java.lang.String"/>
  56. <queryString language="SQL">
  57. <![CDATA[select count(*) cnt,author from t_web group by author]]>
  58. </queryString>
  59. <field name="cnt" class="java.lang.Long"/>
  60. <field name="author" class="java.lang.String"/>
  61. <background>
  62. <band splitType="Stretch"/>
  63. </background>
  64. <title>
  65. <band height="61" splitType="Stretch">
  66. <textField>
  67. <reportElement x="110" y="1" width="300" height="30" uuid="0d8a9de4-7ee2-4ebe-9eab-fa0e0c9d1a40"/>
  68. <textElement textAlignment="Center" verticalAlignment="Middle">
  69. <font fontName="宋体" size="20" pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/>
  70. </textElement>
  71. <textFieldExpression><![CDATA["栏目稿件发布量统计"]]></textFieldExpression>
  72. </textField>
  73. <staticText>
  74. <reportElement x="110" y="40" width="60" height="20" uuid="3f13015c-b265-4ef0-bf75-559472cf5e4e"/>
  75. <textElement>
  76. <font pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/>
  77. </textElement>
  78. <text><![CDATA[开始日期]]></text>
  79. </staticText>
  80. <textField>
  81. <reportElement x="170" y="40" width="90" height="20" uuid="0e0f37fa-5253-4a73-b854-d42f8086c7df"/>
  82. <textElement>
  83. <font pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/>
  84. </textElement>
  85. <textFieldExpression><![CDATA[$P{StartDate}]]></textFieldExpression>
  86. </textField>
  87. <staticText>
  88. <reportElement x="290" y="40" width="60" height="20" uuid="83d941c5-fec9-4941-85c8-ded12be1e4aa"/>
  89. <textElement>
  90. <font pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/>
  91. </textElement>
  92. <text><![CDATA[结束日期]]></text>
  93. </staticText>
  94. <textField>
  95. <reportElement x="350" y="40" width="70" height="20" uuid="dbb4aa9a-b552-4880-b8a1-65c79f081d0d"/>
  96. <textElement>
  97. <font pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/>
  98. </textElement>
  99. <textFieldExpression><![CDATA[$P{EndDate}]]></textFieldExpression>
  100. </textField>
  101. </band>
  102. </title>
  103. <pageHeader>
  104. <band height="5" splitType="Stretch"/>
  105. </pageHeader>
  106. <columnHeader>
  107. <band height="5" splitType="Stretch"/>
  108. </columnHeader>
  109. <detail>
  110. <band height="3" splitType="Stretch"/>
  111. </detail>
  112. <columnFooter>
  113. <band height="7" splitType="Stretch"/>
  114. </columnFooter>
  115. <pageFooter>
  116. <band height="5" splitType="Stretch"/>
  117. </pageFooter>
  118. <summary>
  119. <band height="167" splitType="Stretch">
  120. <componentElement>
  121. <reportElement positionType="Float" x="20" y="0" width="470" height="160" uuid="f965a34f-7976-41ae-ab24-6194edffc6b9">
  122. <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.grid.JSSGridBagLayout"/>
  123. <property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
  124. <property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
  125. <property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
  126. </reportElement>
  127. <jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" whenNoDataType="Blank">
  128. <datasetRun subDataset="Dataset1" uuid="73f75a77-fffa-49a5-8c35-ac1da27cf235">
  129. <datasetParameter name="StartDate">
  130. <datasetParameterExpression><![CDATA[$P{StartDate}]]></datasetParameterExpression>
  131. </datasetParameter>
  132. <datasetParameter name="EndDate">
  133. <datasetParameterExpression><![CDATA[$P{EndDate}]]></datasetParameterExpression>
  134. </datasetParameter>
  135. <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
  136. </datasetRun>
  137. <jr:column width="100" uuid="856d3eff-2d59-4997-95da-e2f5b87cbc1a">
  138. <property name="com.jaspersoft.studio.components.table.model.column.name" value="Column1"/>
  139. <jr:tableHeader style="Table_TH" height="30" rowSpan="1">
  140. <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.grid.JSSGridBagLayout"/>
  141. <property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
  142. <property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
  143. <property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
  144. </jr:tableHeader>
  145. <jr:tableFooter style="Table_TH" height="30" rowSpan="1">
  146. <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.grid.JSSGridBagLayout"/>
  147. <property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
  148. <property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
  149. <property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
  150. </jr:tableFooter>
  151. <jr:columnHeader style="Table_CH" height="30" rowSpan="1">
  152. <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.grid.JSSGridBagLayout"/>
  153. <property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
  154. <property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
  155. <property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
  156. <staticText>
  157. <reportElement x="0" y="0" width="100" height="30" uuid="937156ed-f18f-40da-b480-18977c22e8ca">
  158. <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.grid.JSSGridBagLayout"/>
  159. <property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
  160. <property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
  161. <property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
  162. </reportElement>
  163. <textElement textAlignment="Center" verticalAlignment="Middle">
  164. <font fontName="宋体" pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/>
  165. </textElement>
  166. <text><![CDATA[栏目]]></text>
  167. </staticText>
  168. </jr:columnHeader>
  169. <jr:columnFooter style="Table_CH" height="30" rowSpan="1">
  170. <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.grid.JSSGridBagLayout"/>
  171. <property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
  172. <property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
  173. <property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
  174. </jr:columnFooter>
  175. <jr:detailCell style="Table_TD" height="30">
  176. <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.grid.JSSGridBagLayout"/>
  177. <property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
  178. <property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
  179. <property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
  180. <textField>
  181. <reportElement x="0" y="0" width="100" height="30" uuid="c78b5158-1f7a-40e9-866d-20fddb346902">
  182. <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.grid.JSSGridBagLayout"/>
  183. <property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
  184. <property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
  185. <property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
  186. </reportElement>
  187. <textElement textAlignment="Center" verticalAlignment="Middle">
  188. <font fontName="宋体" pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/>
  189. </textElement>
  190. <textFieldExpression><![CDATA[$F{columnname}]]></textFieldExpression>
  191. </textField>
  192. </jr:detailCell>
  193. </jr:column>
  194. <jr:column width="100" uuid="d8f8a2b5-411d-4780-8310-ffd6279216c4">
  195. <property name="com.jaspersoft.studio.components.table.model.column.name" value="Column2"/>
  196. <jr:tableHeader style="Table_TH" height="30" rowSpan="1">
  197. <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.grid.JSSGridBagLayout"/>
  198. <property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
  199. <property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
  200. <property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
  201. </jr:tableHeader>
  202. <jr:tableFooter style="Table_TH" height="30" rowSpan="1">
  203. <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.grid.JSSGridBagLayout"/>
  204. <property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
  205. <property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
  206. <property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
  207. </jr:tableFooter>
  208. <jr:columnHeader style="Table_CH" height="30" rowSpan="1">
  209. <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.grid.JSSGridBagLayout"/>
  210. <property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
  211. <property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
  212. <property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
  213. <staticText>
  214. <reportElement x="0" y="0" width="100" height="30" uuid="85ff0e07-9a92-40af-85fb-53c5b292d8f8">
  215. <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.grid.JSSGridBagLayout"/>
  216. <property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
  217. <property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
  218. <property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
  219. </reportElement>
  220. <textElement textAlignment="Center" verticalAlignment="Middle">
  221. <font fontName="宋体" pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/>
  222. </textElement>
  223. <text><![CDATA[发布量]]></text>
  224. </staticText>
  225. </jr:columnHeader>
  226. <jr:columnFooter style="Table_CH" height="30" rowSpan="1">
  227. <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.grid.JSSGridBagLayout"/>
  228. <property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
  229. <property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
  230. <property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
  231. </jr:columnFooter>
  232. <jr:detailCell style="Table_TD" height="30">
  233. <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.grid.JSSGridBagLayout"/>
  234. <property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
  235. <property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
  236. <property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
  237. <textField>
  238. <reportElement x="0" y="0" width="100" height="30" uuid="f4698009-3357-4757-8366-a92998c6d3ed">
  239. <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.grid.JSSGridBagLayout"/>
  240. <property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/>
  241. <property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/>
  242. <property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/>
  243. </reportElement>
  244. <textElement textAlignment="Center" verticalAlignment="Middle">
  245. <font fontName="宋体" pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/>
  246. </textElement>
  247. <textFieldExpression><![CDATA[$F{cnt}]]></textFieldExpression>
  248. </textField>
  249. </jr:detailCell>
  250. </jr:column>
  251. <jr:column width="70" uuid="aff702aa-dc11-4932-99e4-21dc4c7e4659">
  252. <property name="com.jaspersoft.studio.components.table.model.column.name" value="Column3"/>
  253. <jr:tableHeader style="Table_TH" height="30" rowSpan="1"/>
  254. <jr:tableFooter style="Table_TH" height="30" rowSpan="1"/>
  255. <jr:columnHeader style="Table_CH" height="30" rowSpan="1">
  256. <staticText>
  257. <reportElement x="0" y="0" width="70" height="30" uuid="290fab44-5daf-45dd-9291-d4c08cd9ba09"/>
  258. <textElement textAlignment="Center" verticalAlignment="Middle">
  259. <font fontName="宋体" pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/>
  260. </textElement>
  261. <text><![CDATA[图片数量]]></text>
  262. </staticText>
  263. </jr:columnHeader>
  264. <jr:columnFooter style="Table_CH" height="30" rowSpan="1"/>
  265. <jr:detailCell style="Table_TD" height="30">
  266. <textField>
  267. <reportElement x="0" y="0" width="70" height="30" uuid="a67687cf-a2a1-4a53-bcb7-3604a0431335"/>
  268. <textElement textAlignment="Center" verticalAlignment="Middle">
  269. <font fontName="宋体" pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/>
  270. </textElement>
  271. <textFieldExpression><![CDATA[$F{imgnums}]]></textFieldExpression>
  272. </textField>
  273. </jr:detailCell>
  274. </jr:column>
  275. <jr:column width="90" uuid="babc5f3b-9b47-41b1-8da0-29e9b5e9d542">
  276. <property name="com.jaspersoft.studio.components.table.model.column.name" value="Column4"/>
  277. <jr:tableHeader style="Table_TH" height="30" rowSpan="1"/>
  278. <jr:tableFooter style="Table_TH" height="30" rowSpan="1"/>
  279. <jr:columnHeader style="Table_CH" height="30" rowSpan="1">
  280. <staticText>
  281. <reportElement x="0" y="0" width="90" height="30" uuid="d44ba9b3-d44b-4410-b736-09531d3c8890"/>
  282. <textElement textAlignment="Center" verticalAlignment="Middle">
  283. <font fontName="宋体" pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/>
  284. </textElement>
  285. <text><![CDATA[文字数量]]></text>
  286. </staticText>
  287. </jr:columnHeader>
  288. <jr:columnFooter style="Table_CH" height="30" rowSpan="1"/>
  289. <jr:detailCell style="Table_TD" height="30">
  290. <textField>
  291. <reportElement x="0" y="0" width="90" height="30" uuid="bec13fcb-6cb2-4a96-9663-f32c2e63f27f"/>
  292. <textElement textAlignment="Center" verticalAlignment="Middle">
  293. <font fontName="宋体" pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/>
  294. </textElement>
  295. <textFieldExpression><![CDATA[$F{wordnums}]]></textFieldExpression>
  296. </textField>
  297. </jr:detailCell>
  298. </jr:column>
  299. <jr:column width="100" uuid="42325d50-6059-4461-ab38-f7ec81e5b4fe">
  300. <property name="com.jaspersoft.studio.components.table.model.column.name" value="Column5"/>
  301. <jr:tableHeader style="Table_TH" height="30" rowSpan="1"/>
  302. <jr:tableFooter style="Table_TH" height="30" rowSpan="1"/>
  303. <jr:columnHeader style="Table_CH" height="30" rowSpan="1">
  304. <staticText>
  305. <reportElement x="0" y="0" width="100" height="30" uuid="1d080f05-97da-4b9d-b29b-324d9f09cd3c"/>
  306. <textElement textAlignment="Center" verticalAlignment="Middle">
  307. <font fontName="宋体" pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/>
  308. </textElement>
  309. <text><![CDATA[相关新闻数量]]></text>
  310. </staticText>
  311. </jr:columnHeader>
  312. <jr:columnFooter style="Table_CH" height="30" rowSpan="1"/>
  313. <jr:detailCell style="Table_TD" height="30">
  314. <textField>
  315. <reportElement x="0" y="0" width="100" height="30" uuid="f5146df5-3021-4e91-bbc0-9a0047b506d2"/>
  316. <textElement textAlignment="Center" verticalAlignment="Middle">
  317. <font fontName="宋体" pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/>
  318. </textElement>
  319. <textFieldExpression><![CDATA[$F{RelatingNums}]]></textFieldExpression>
  320. </textField>
  321. </jr:detailCell>
  322. </jr:column>
  323. </jr:table>
  324. </componentElement>
  325. </band>
  326. </summary>
  327. </jasperReport>