word文档中动态生成excel表格(基金公告系列讲解)

1.本博文仅为了将之前工作中动态生成XBRL文件需求中word文档动态生成excel部分进行了实现(虽然隔着时间比较久),闲暇之余的考虑,应对大批量文件生成时可采用定时任务+多线程技术+redis队列方式生成文件

若有基金公告方面的开发需求,可参考另外一篇关于freemarker生成XBRL文件(虽然看起来比较low,但对于入门来说还是可以的)

采用技术:

thymeleaf+xml模板

难点在于xml模板文件生成部分

适用场景:word中需要动态生成excel(行列合并情况),普通java程序代码难以使用时

maven依赖

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.2.5.RELEASE</version>
</parent>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
    <groupId>org.thymeleaf</groupId>
    <artifactId>thymeleaf</artifactId>
    <version>3.0.12.RELEASE</version>
</dependency>
<dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>1.18.12</version>
    <scope>provided</scope>
</dependency>

素材来源:证监会官网---信息披露---上市公司公告更多---公墓基金----XBRL公告

http://www.csrc.gov.cn/pub/newsite/

步骤1:

转换word文档为xml文档; 初步word模板报错为:Word  XML文档格式

 

其中关于列合并重要的参数,具体细节需要自行参考生成的xml文件,原理和html生成table类似

合并列参数

<w:gridSpan w:val="2"/>

行合并参数

w:vmerge

后续

val值代表合并的列,同时也是扩展动态列生成时需要考虑的因素,比如图中有

嘉合同顺智选股票A 和 嘉合同顺智选股票C  要想再生成一个  嘉合同顺智选股票D

就需要一个参数控制,因为上面的2798  2632 都是需要添加属性 <w:gridSpan w:val="3"/> 而非一直保持 <w:gridSpan w:val="2"/>

一个w:tc理解为一个单元格

可以与html中的table表格行列数据

      <w:tc th:each="ty ,fund01Child:${children}">
  <w:tcPr>
    <w:tcW w:w="2573" w:type="dxa"/>
      <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
  </w:tcPr>
          <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
    <w:r>
      <w:t th:text="${ty.name}"></w:t>
    </w:r>
  </w:p>
</w:tc>

步骤2,将数据封装为map对象,调用模板文件

具体模板文件和代码如下

工程结构

xml模板代码

<?xml version="1.0" encoding="utf-8"?>
<?mso-application progid="Word.Document"?>

<w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml"
                xmlns:aml="http://schemas.microsoft.com/aml/2001/core"
                xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas"
                xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex"
                xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex"
                xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex"
                xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex"
                xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex"
                xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex"
                xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex"
                xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex"
                xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex"
                xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
                xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink"
                xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d"
                xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml"
                xmlns:w10="urn:schemas-microsoft-com:office:word"
                xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint"
                xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml"
                xmlns:wsp="http://schemas.microsoft.com/office/word/2003/wordml/sp2"
                xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core" w:macrosPresent="no"
                w:embeddedObjPresent="no" w:ocxPresent="no" xml:space="preserve">
  <w:ignoreSubtree w:val="http://schemas.microsoft.com/office/word/2003/wordml/sp2"/>
    <o:DocumentProperties>
    <o:Author>zhang wei</o:Author>
        <o:LastAuthor>zhang wei</o:LastAuthor>
        <o:Revision>2</o:Revision>
        <o:TotalTime>3</o:TotalTime>
        <o:Created>2021-08-02T14:14:00Z</o:Created>
        <o:LastSaved>2021-08-02T14:14:00Z</o:LastSaved>
        <o:Pages>1</o:Pages>
        <o:Words>42</o:Words>
        <o:Characters>243</o:Characters>
        <o:Lines>2</o:Lines>
        <o:Paragraphs>1</o:Paragraphs>
        <o:CharactersWithSpaces>284</o:CharactersWithSpaces>
        <o:Version>16</o:Version>
  </o:DocumentProperties>
    <o:CustomDocumentProperties>
    <o:KSOProductBuildVer dt:dt="string">2052-11.1.0.10667</o:KSOProductBuildVer>
        <o:ICV dt:dt="string">E345E9B4D2E74E3DA09ED57D7CFDA246</o:ICV>
  </o:CustomDocumentProperties>
    <w:fonts>
    <w:defaultFonts w:ascii="等线" w:fareast="等线" w:h-ansi="等线" w:cs="Times New Roman"/>
        <w:font w:name="Times New Roman">
      <w:panose-1 w:val="02020603050405020304"/>
            <w:charset w:val="00"/>
            <w:family w:val="Roman"/>
            <w:pitch w:val="variable"/>
            <w:sig w:usb-0="E0002EFF" w:usb-1="C000785B" w:usb-2="00000009" w:usb-3="00000000" w:csb-0="000001FF"
                   w:csb-1="00000000"/>
    </w:font>
        <w:font w:name="Cambria Math">
      <w:panose-1 w:val="02040503050406030204"/>
            <w:charset w:val="00"/>
            <w:family w:val="Roman"/>
            <w:pitch w:val="variable"/>
            <w:sig w:usb-0="00000003" w:usb-1="00000000" w:usb-2="00000000" w:usb-3="00000000" w:csb-0="00000001"
                   w:csb-1="00000000"/>
    </w:font>
        <w:font w:name="等线">
      <w:altName w:val="DengXian"/>
            <w:panose-1 w:val="02010600030101010101"/>
            <w:charset w:val="86"/>
            <w:family w:val="auto"/>
            <w:pitch w:val="variable"/>
            <w:sig w:usb-0="A00002BF" w:usb-1="38CF7CFA" w:usb-2="00000016" w:usb-3="00000000" w:csb-0="0004000F"
                   w:csb-1="00000000"/>
    </w:font>
        <w:font w:name="@等线">
      <w:panose-1 w:val="02010600030101010101"/>
            <w:charset w:val="86"/>
            <w:family w:val="auto"/>
            <w:pitch w:val="variable"/>
            <w:sig w:usb-0="A00002BF" w:usb-1="38CF7CFA" w:usb-2="00000016" w:usb-3="00000000" w:csb-0="0004000F"
                   w:csb-1="00000000"/>
    </w:font>
  </w:fonts>
    <w:styles>
    <w:versionOfBuiltInStylenames w:val="7"/>
        <w:latentStyles w:defLockedState="off" w:latentStyleCount="376">
      <w:lsdException w:name="Normal"/>
            <w:lsdException w:name="heading 1"/>
            <w:lsdException w:name="heading 2"/>
            <w:lsdException w:name="heading 3"/>
            <w:lsdException w:name="heading 4"/>
            <w:lsdException w:name="heading 5"/>
            <w:lsdException w:name="heading 6"/>
            <w:lsdException w:name="heading 7"/>
            <w:lsdException w:name="heading 8"/>
            <w:lsdException w:name="heading 9"/>
            <w:lsdException w:name="index 1"/>
            <w:lsdException w:name="index 2"/>
            <w:lsdException w:name="index 3"/>
            <w:lsdException w:name="index 4"/>
            <w:lsdException w:name="index 5"/>
            <w:lsdException w:name="index 6"/>
            <w:lsdException w:name="index 7"/>
            <w:lsdException w:name="index 8"/>
            <w:lsdException w:name="index 9"/>
            <w:lsdException w:name="toc 1"/>
            <w:lsdException w:name="toc 2"/>
            <w:lsdException w:name="toc 3"/>
            <w:lsdException w:name="toc 4"/>
            <w:lsdException w:name="toc 5"/>
            <w:lsdException w:name="toc 6"/>
            <w:lsdException w:name="toc 7"/>
            <w:lsdException w:name="toc 8"/>
            <w:lsdException w:name="toc 9"/>
            <w:lsdException w:name="Normal Indent"/>
            <w:lsdException w:name="footnote text"/>
            <w:lsdException w:name="annotation text"/>
            <w:lsdException w:name="header"/>
            <w:lsdException w:name="footer"/>
            <w:lsdException w:name="index heading"/>
            <w:lsdException w:name="caption"/>
            <w:lsdException w:name="table of figures"/>
            <w:lsdException w:name="envelope address"/>
            <w:lsdException w:name="envelope return"/>
            <w:lsdException w:name="footnote reference"/>
            <w:lsdException w:name="annotation reference"/>
            <w:lsdException w:name="line number"/>
            <w:lsdException w:name="page number"/>
            <w:lsdException w:name="endnote reference"/>
            <w:lsdException w:name="endnote text"/>
            <w:lsdException w:name="table of authorities"/>
            <w:lsdException w:name="macro"/>
            <w:lsdException w:name="toa heading"/>
            <w:lsdException w:name="List"/>
            <w:lsdException w:name="List Bullet"/>
            <w:lsdException w:name="List Number"/>
            <w:lsdException w:name="List 2"/>
            <w:lsdException w:name="List 3"/>
            <w:lsdException w:name="List 4"/>
            <w:lsdException w:name="List 5"/>
            <w:lsdException w:name="List Bullet 2"/>
            <w:lsdException w:name="List Bullet 3"/>
            <w:lsdException w:name="List Bullet 4"/>
            <w:lsdException w:name="List Bullet 5"/>
            <w:lsdException w:name="List Number 2"/>
            <w:lsdException w:name="List Number 3"/>
            <w:lsdException w:name="List Number 4"/>
            <w:lsdException w:name="List Number 5"/>
            <w:lsdException w:name="Title"/>
            <w:lsdException w:name="Closing"/>
            <w:lsdException w:name="Signature"/>
            <w:lsdException w:name="Default Paragraph Font"/>
            <w:lsdException w:name="Body Text"/>
            <w:lsdException w:name="Body Text Indent"/>
            <w:lsdException w:name="List Continue"/>
            <w:lsdException w:name="List Continue 2"/>
            <w:lsdException w:name="List Continue 3"/>
            <w:lsdException w:name="List Continue 4"/>
            <w:lsdException w:name="List Continue 5"/>
            <w:lsdException w:name="Message Header"/>
            <w:lsdException w:name="Subtitle"/>
            <w:lsdException w:name="Salutation"/>
            <w:lsdException w:name="Date"/>
            <w:lsdException w:name="Body Text First Indent"/>
            <w:lsdException w:name="Body Text First Indent 2"/>
            <w:lsdException w:name="Note Heading"/>
            <w:lsdException w:name="Body Text 2"/>
            <w:lsdException w:name="Body Text 3"/>
            <w:lsdException w:name="Body Text Indent 2"/>
            <w:lsdException w:name="Body Text Indent 3"/>
            <w:lsdException w:name="Block Text"/>
            <w:lsdException w:name="Hyperlink"/>
            <w:lsdException w:name="FollowedHyperlink"/>
            <w:lsdException w:name="Strong"/>
            <w:lsdException w:name="Emphasis"/>
            <w:lsdException w:name="Document Map"/>
            <w:lsdException w:name="Plain Text"/>
            <w:lsdException w:name="E-mail Signature"/>
            <w:lsdException w:name="HTML Top of Form"/>
            <w:lsdException w:name="HTML Bottom of Form"/>
            <w:lsdException w:name="Normal (Web)"/>
            <w:lsdException w:name="HTML Acronym"/>
            <w:lsdException w:name="HTML Address"/>
            <w:lsdException w:name="HTML Cite"/>
            <w:lsdException w:name="HTML Code"/>
            <w:lsdException w:name="HTML Definition"/>
            <w:lsdException w:name="HTML Keyboard"/>
            <w:lsdException w:name="HTML Preformatted"/>
            <w:lsdException w:name="HTML Sample"/>
            <w:lsdException w:name="HTML Typewriter"/>
            <w:lsdException w:name="HTML Variable"/>
            <w:lsdException w:name="Normal Table"/>
            <w:lsdException w:name="annotation subject"/>
            <w:lsdException w:name="No List"/>
            <w:lsdException w:name="Outline List 1"/>
            <w:lsdException w:name="Outline List 2"/>
            <w:lsdException w:name="Outline List 3"/>
            <w:lsdException w:name="Table Simple 1"/>
            <w:lsdException w:name="Table Simple 2"/>
            <w:lsdException w:name="Table Simple 3"/>
            <w:lsdException w:name="Table Classic 1"/>
            <w:lsdException w:name="Table Classic 2"/>
            <w:lsdException w:name="Table Classic 3"/>
            <w:lsdException w:name="Table Classic 4"/>
            <w:lsdException w:name="Table Colorful 1"/>
            <w:lsdException w:name="Table Colorful 2"/>
            <w:lsdException w:name="Table Colorful 3"/>
            <w:lsdException w:name="Table Columns 1"/>
            <w:lsdException w:name="Table Columns 2"/>
            <w:lsdException w:name="Table Columns 3"/>
            <w:lsdException w:name="Table Columns 4"/>
            <w:lsdException w:name="Table Columns 5"/>
            <w:lsdException w:name="Table Grid 1"/>
            <w:lsdException w:name="Table Grid 2"/>
            <w:lsdException w:name="Table Grid 3"/>
            <w:lsdException w:name="Table Grid 4"/>
            <w:lsdException w:name="Table Grid 5"/>
            <w:lsdException w:name="Table Grid 6"/>
            <w:lsdException w:name="Table Grid 7"/>
            <w:lsdException w:name="Table Grid 8"/>
            <w:lsdException w:name="Table List 1"/>
            <w:lsdException w:name="Table List 2"/>
            <w:lsdException w:name="Table List 3"/>
            <w:lsdException w:name="Table List 4"/>
            <w:lsdException w:name="Table List 5"/>
            <w:lsdException w:name="Table List 6"/>
            <w:lsdException w:name="Table List 7"/>
            <w:lsdException w:name="Table List 8"/>
            <w:lsdException w:name="Table 3D effects 1"/>
            <w:lsdException w:name="Table 3D effects 2"/>
            <w:lsdException w:name="Table 3D effects 3"/>
            <w:lsdException w:name="Table Contemporary"/>
            <w:lsdException w:name="Table Elegant"/>
            <w:lsdException w:name="Table Professional"/>
            <w:lsdException w:name="Table Subtle 1"/>
            <w:lsdException w:name="Table Subtle 2"/>
            <w:lsdException w:name="Table Web 1"/>
            <w:lsdException w:name="Table Web 2"/>
            <w:lsdException w:name="Table Web 3"/>
            <w:lsdException w:name="Balloon Text"/>
            <w:lsdException w:name="Table Grid"/>
            <w:lsdException w:name="Table Theme"/>
            <w:lsdException w:name="Placeholder Text"/>
            <w:lsdException w:name="Light Shading"/>
            <w:lsdException w:name="Light List"/>
            <w:lsdException w:name="Light Grid"/>
            <w:lsdException w:name="Medium Shading 1"/>
            <w:lsdException w:name="Medium Shading 2"/>
            <w:lsdException w:name="Medium List 1"/>
            <w:lsdException w:name="Medium List 2"/>
            <w:lsdException w:name="Medium Grid 1"/>
            <w:lsdException w:name="Medium Grid 2"/>
            <w:lsdException w:name="Medium Grid 3"/>
            <w:lsdException w:name="Dark List"/>
            <w:lsdException w:name="Colorful Shading"/>
            <w:lsdException w:name="Colorful List"/>
            <w:lsdException w:name="Colorful Grid"/>
            <w:lsdException w:name="Light Shading Accent 1"/>
            <w:lsdException w:name="Light List Accent 1"/>
            <w:lsdException w:name="Light Grid Accent 1"/>
            <w:lsdException w:name="Medium Shading 1 Accent 1"/>
            <w:lsdException w:name="Medium Shading 2 Accent 1"/>
            <w:lsdException w:name="Medium List 1 Accent 1"/>
            <w:lsdException w:name="Revision"/>
            <w:lsdException w:name="List Paragraph"/>
            <w:lsdException w:name="Medium List 2 Accent 1"/>
            <w:lsdException w:name="Medium Grid 1 Accent 1"/>
            <w:lsdException w:name="Medium Grid 2 Accent 1"/>
            <w:lsdException w:name="Medium Grid 3 Accent 1"/>
            <w:lsdException w:name="Dark List Accent 1"/>
            <w:lsdException w:name="Colorful Shading Accent 1"/>
            <w:lsdException w:name="Colorful List Accent 1"/>
            <w:lsdException w:name="Colorful Grid Accent 1"/>
            <w:lsdException w:name="Light Shading Accent 2"/>
            <w:lsdException w:name="Light List Accent 2"/>
            <w:lsdException w:name="Light Grid Accent 2"/>
            <w:lsdException w:name="Medium Shading 1 Accent 2"/>
            <w:lsdException w:name="Medium Shading 2 Accent 2"/>
            <w:lsdException w:name="Medium List 1 Accent 2"/>
            <w:lsdException w:name="Medium List 2 Accent 2"/>
            <w:lsdException w:name="Medium Grid 1 Accent 2"/>
            <w:lsdException w:name="Medium Grid 2 Accent 2"/>
            <w:lsdException w:name="Medium Grid 3 Accent 2"/>
            <w:lsdException w:name="Dark List Accent 2"/>
            <w:lsdException w:name="Colorful Shading Accent 2"/>
            <w:lsdException w:name="Colorful List Accent 2"/>
            <w:lsdException w:name="Colorful Grid Accent 2"/>
            <w:lsdException w:name="Light Shading Accent 3"/>
            <w:lsdException w:name="Light List Accent 3"/>
            <w:lsdException w:name="Light Grid Accent 3"/>
            <w:lsdException w:name="Medium Shading 1 Accent 3"/>
            <w:lsdException w:name="Medium Shading 2 Accent 3"/>
            <w:lsdException w:name="Medium List 1 Accent 3"/>
            <w:lsdException w:name="Medium List 2 Accent 3"/>
            <w:lsdException w:name="Medium Grid 1 Accent 3"/>
            <w:lsdException w:name="Medium Grid 2 Accent 3"/>
            <w:lsdException w:name="Medium Grid 3 Accent 3"/>
            <w:lsdException w:name="Dark List Accent 3"/>
            <w:lsdException w:name="Colorful Shading Accent 3"/>
            <w:lsdException w:name="Colorful List Accent 3"/>
            <w:lsdException w:name="Colorful Grid Accent 3"/>
            <w:lsdException w:name="Light Shading Accent 4"/>
            <w:lsdException w:name="Light List Accent 4"/>
            <w:lsdException w:name="Light Grid Accent 4"/>
            <w:lsdException w:name="Medium Shading 1 Accent 4"/>
            <w:lsdException w:name="Medium Shading 2 Accent 4"/>
            <w:lsdException w:name="Medium List 1 Accent 4"/>
            <w:lsdException w:name="Medium List 2 Accent 4"/>
            <w:lsdException w:name="Medium Grid 1 Accent 4"/>
            <w:lsdException w:name="Medium Grid 2 Accent 4"/>
            <w:lsdException w:name="Medium Grid 3 Accent 4"/>
            <w:lsdException w:name="Dark List Accent 4"/>
            <w:lsdException w:name="Colorful Shading Accent 4"/>
            <w:lsdException w:name="Colorful List Accent 4"/>
            <w:lsdException w:name="Colorful Grid Accent 4"/>
            <w:lsdException w:name="Light Shading Accent 5"/>
            <w:lsdException w:name="Light List Accent 5"/>
            <w:lsdException w:name="Light Grid Accent 5"/>
            <w:lsdException w:name="Medium Shading 1 Accent 5"/>
            <w:lsdException w:name="Medium Shading 2 Accent 5"/>
            <w:lsdException w:name="Medium List 1 Accent 5"/>
            <w:lsdException w:name="Medium List 2 Accent 5"/>
            <w:lsdException w:name="Medium Grid 1 Accent 5"/>
            <w:lsdException w:name="Medium Grid 2 Accent 5"/>
            <w:lsdException w:name="Medium Grid 3 Accent 5"/>
            <w:lsdException w:name="Dark List Accent 5"/>
            <w:lsdException w:name="Colorful Shading Accent 5"/>
            <w:lsdException w:name="Colorful List Accent 5"/>
            <w:lsdException w:name="Colorful Grid Accent 5"/>
            <w:lsdException w:name="Light Shading Accent 6"/>
            <w:lsdException w:name="Light List Accent 6"/>
            <w:lsdException w:name="Light Grid Accent 6"/>
            <w:lsdException w:name="Medium Shading 1 Accent 6"/>
            <w:lsdException w:name="Medium Shading 2 Accent 6"/>
            <w:lsdException w:name="Medium List 1 Accent 6"/>
            <w:lsdException w:name="Medium List 2 Accent 6"/>
            <w:lsdException w:name="Medium Grid 1 Accent 6"/>
            <w:lsdException w:name="Medium Grid 2 Accent 6"/>
            <w:lsdException w:name="Medium Grid 3 Accent 6"/>
            <w:lsdException w:name="Dark List Accent 6"/>
            <w:lsdException w:name="Colorful Shading Accent 6"/>
            <w:lsdException w:name="Colorful List Accent 6"/>
            <w:lsdException w:name="Colorful Grid Accent 6"/>
            <w:lsdException w:name="Subtle Emphasis"/>
            <w:lsdException w:name="Intense Emphasis"/>
            <w:lsdException w:name="Subtle Reference"/>
            <w:lsdException w:name="Intense Reference"/>
            <w:lsdException w:name="Book Title"/>
            <w:lsdException w:name="Bibliography"/>
            <w:lsdException w:name="TOC Heading"/>
            <w:lsdException w:name="Plain Table 1"/>
            <w:lsdException w:name="Plain Table 2"/>
            <w:lsdException w:name="Plain Table 3"/>
            <w:lsdException w:name="Plain Table 4"/>
            <w:lsdException w:name="Plain Table 5"/>
            <w:lsdException w:name="Grid Table Light"/>
            <w:lsdException w:name="Grid Table 1 Light"/>
            <w:lsdException w:name="Grid Table 2"/>
            <w:lsdException w:name="Grid Table 3"/>
            <w:lsdException w:name="Grid Table 4"/>
            <w:lsdException w:name="Grid Table 5 Dark"/>
            <w:lsdException w:name="Grid Table 6 Colorful"/>
            <w:lsdException w:name="Grid Table 7 Colorful"/>
            <w:lsdException w:name="Grid Table 1 Light Accent 1"/>
            <w:lsdException w:name="Grid Table 2 Accent 1"/>
            <w:lsdException w:name="Grid Table 3 Accent 1"/>
            <w:lsdException w:name="Grid Table 4 Accent 1"/>
            <w:lsdException w:name="Grid Table 5 Dark Accent 1"/>
            <w:lsdException w:name="Grid Table 6 Colorful Accent 1"/>
            <w:lsdException w:name="Grid Table 7 Colorful Accent 1"/>
            <w:lsdException w:name="Grid Table 1 Light Accent 2"/>
            <w:lsdException w:name="Grid Table 2 Accent 2"/>
            <w:lsdException w:name="Grid Table 3 Accent 2"/>
            <w:lsdException w:name="Grid Table 4 Accent 2"/>
            <w:lsdException w:name="Grid Table 5 Dark Accent 2"/>
            <w:lsdException w:name="Grid Table 6 Colorful Accent 2"/>
            <w:lsdException w:name="Grid Table 7 Colorful Accent 2"/>
            <w:lsdException w:name="Grid Table 1 Light Accent 3"/>
            <w:lsdException w:name="Grid Table 2 Accent 3"/>
            <w:lsdException w:name="Grid Table 3 Accent 3"/>
            <w:lsdException w:name="Grid Table 4 Accent 3"/>
            <w:lsdException w:name="Grid Table 5 Dark Accent 3"/>
            <w:lsdException w:name="Grid Table 6 Colorful Accent 3"/>
            <w:lsdException w:name="Grid Table 7 Colorful Accent 3"/>
            <w:lsdException w:name="Grid Table 1 Light Accent 4"/>
            <w:lsdException w:name="Grid Table 2 Accent 4"/>
            <w:lsdException w:name="Grid Table 3 Accent 4"/>
            <w:lsdException w:name="Grid Table 4 Accent 4"/>
            <w:lsdException w:name="Grid Table 5 Dark Accent 4"/>
            <w:lsdException w:name="Grid Table 6 Colorful Accent 4"/>
            <w:lsdException w:name="Grid Table 7 Colorful Accent 4"/>
            <w:lsdException w:name="Grid Table 1 Light Accent 5"/>
            <w:lsdException w:name="Grid Table 2 Accent 5"/>
            <w:lsdException w:name="Grid Table 3 Accent 5"/>
            <w:lsdException w:name="Grid Table 4 Accent 5"/>
            <w:lsdException w:name="Grid Table 5 Dark Accent 5"/>
            <w:lsdException w:name="Grid Table 6 Colorful Accent 5"/>
            <w:lsdException w:name="Grid Table 7 Colorful Accent 5"/>
            <w:lsdException w:name="Grid Table 1 Light Accent 6"/>
            <w:lsdException w:name="Grid Table 2 Accent 6"/>
            <w:lsdException w:name="Grid Table 3 Accent 6"/>
            <w:lsdException w:name="Grid Table 4 Accent 6"/>
            <w:lsdException w:name="Grid Table 5 Dark Accent 6"/>
            <w:lsdException w:name="Grid Table 6 Colorful Accent 6"/>
            <w:lsdException w:name="Grid Table 7 Colorful Accent 6"/>
            <w:lsdException w:name="List Table 1 Light"/>
            <w:lsdException w:name="List Table 2"/>
            <w:lsdException w:name="List Table 3"/>
            <w:lsdException w:name="List Table 4"/>
            <w:lsdException w:name="List Table 5 Dark"/>
            <w:lsdException w:name="List Table 6 Colorful"/>
            <w:lsdException w:name="List Table 7 Colorful"/>
            <w:lsdException w:name="List Table 1 Light Accent 1"/>
            <w:lsdException w:name="List Table 2 Accent 1"/>
            <w:lsdException w:name="List Table 3 Accent 1"/>
            <w:lsdException w:name="List Table 4 Accent 1"/>
            <w:lsdException w:name="List Table 5 Dark Accent 1"/>
            <w:lsdException w:name="List Table 6 Colorful Accent 1"/>
            <w:lsdException w:name="List Table 7 Colorful Accent 1"/>
            <w:lsdException w:name="List Table 1 Light Accent 2"/>
            <w:lsdException w:name="List Table 2 Accent 2"/>
            <w:lsdException w:name="List Table 3 Accent 2"/>
            <w:lsdException w:name="List Table 4 Accent 2"/>
            <w:lsdException w:name="List Table 5 Dark Accent 2"/>
            <w:lsdException w:name="List Table 6 Colorful Accent 2"/>
            <w:lsdException w:name="List Table 7 Colorful Accent 2"/>
            <w:lsdException w:name="List Table 1 Light Accent 3"/>
            <w:lsdException w:name="List Table 2 Accent 3"/>
            <w:lsdException w:name="List Table 3 Accent 3"/>
            <w:lsdException w:name="List Table 4 Accent 3"/>
            <w:lsdException w:name="List Table 5 Dark Accent 3"/>
            <w:lsdException w:name="List Table 6 Colorful Accent 3"/>
            <w:lsdException w:name="List Table 7 Colorful Accent 3"/>
            <w:lsdException w:name="List Table 1 Light Accent 4"/>
            <w:lsdException w:name="List Table 2 Accent 4"/>
            <w:lsdException w:name="List Table 3 Accent 4"/>
            <w:lsdException w:name="List Table 4 Accent 4"/>
            <w:lsdException w:name="List Table 5 Dark Accent 4"/>
            <w:lsdException w:name="List Table 6 Colorful Accent 4"/>
            <w:lsdException w:name="List Table 7 Colorful Accent 4"/>
            <w:lsdException w:name="List Table 1 Light Accent 5"/>
            <w:lsdException w:name="List Table 2 Accent 5"/>
            <w:lsdException w:name="List Table 3 Accent 5"/>
            <w:lsdException w:name="List Table 4 Accent 5"/>
            <w:lsdException w:name="List Table 5 Dark Accent 5"/>
            <w:lsdException w:name="List Table 6 Colorful Accent 5"/>
            <w:lsdException w:name="List Table 7 Colorful Accent 5"/>
            <w:lsdException w:name="List Table 1 Light Accent 6"/>
            <w:lsdException w:name="List Table 2 Accent 6"/>
            <w:lsdException w:name="List Table 3 Accent 6"/>
            <w:lsdException w:name="List Table 4 Accent 6"/>
            <w:lsdException w:name="List Table 5 Dark Accent 6"/>
            <w:lsdException w:name="List Table 6 Colorful Accent 6"/>
            <w:lsdException w:name="List Table 7 Colorful Accent 6"/>
            <w:lsdException w:name="Mention"/>
            <w:lsdException w:name="Smart Hyperlink"/>
            <w:lsdException w:name="Hashtag"/>
            <w:lsdException w:name="Unresolved Mention"/>
            <w:lsdException w:name="Smart Link"/>
    </w:latentStyles>
        <w:style w:type="paragraph" w:default="on" w:styleId="a">
      <w:name w:val="Normal"/>
            <wx:uiName wx:val="正文"/>
            <w:pPr>
        <w:widowControl w:val="off"/>
                <w:jc w:val="both"/>
      </w:pPr>
            <w:rPr>
        <wx:font wx:val="等线"/>
                <w:kern w:val="2"/>
                <w:sz w:val="21"/>
                <w:sz-cs w:val="22"/>
                <w:lang w:val="EN-US" w:fareast="ZH-CN" w:bidi="AR-SA"/>
      </w:rPr>
    </w:style>
        <w:style w:type="character" w:default="on" w:styleId="a0">
      <w:name w:val="Default Paragraph Font"/>
            <wx:uiName wx:val="默认段落字体"/>
    </w:style>
        <w:style w:type="table" w:default="on" w:styleId="a1">
      <w:name w:val="Normal Table"/>
            <wx:uiName wx:val="普通表格"/>
            <w:rPr>
        <wx:font wx:val="等线"/>
                <w:lang w:val="EN-US" w:fareast="ZH-CN" w:bidi="AR-SA"/>
      </w:rPr>
            <w:tblPr>
        <w:tblInd w:w="0" w:type="dxa"/>
                <w:tblCellMar>
          <w:top w:w="0" w:type="dxa"/>
                    <w:left w:w="108" w:type="dxa"/>
                    <w:bottom w:w="0" w:type="dxa"/>
                    <w:right w:w="108" w:type="dxa"/>
        </w:tblCellMar>
      </w:tblPr>
    </w:style>
        <w:style w:type="list" w:default="on" w:styleId="a2">
      <w:name w:val="No List"/>
            <wx:uiName wx:val="无列表"/>
    </w:style>
        <w:style w:type="table" w:styleId="a3">
      <w:name w:val="Table Grid"/>
            <wx:uiName wx:val="网格型"/>
            <w:basedOn w:val="a1"/>
            <w:rPr>
        <wx:font wx:val="等线"/>
      </w:rPr>
            <w:tblPr>
        <w:tblBorders>
          <w:top w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
            <w:left w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
            <w:bottom w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
            <w:right w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
            <w:insideH w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
            <w:insideV w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
        </w:tblBorders>
      </w:tblPr>
    </w:style>
  </w:styles>
    <w:shapeDefaults>
    <o:shapedefaults v:ext="edit" spidmax="1026"/>
        <o:shapelayout v:ext="edit">
      <o:idmap v:ext="edit" data="1"/>
    </o:shapelayout>
  </w:shapeDefaults>
    <w:docPr>
    <w:view w:val="print"/>
        <w:zoom w:percent="100"/>
        <w:doNotEmbedSystemFonts/>
        <w:bordersDontSurroundHeader/>
        <w:bordersDontSurroundFooter/>
        <w:proofState w:spelling="clean" w:grammar="clean"/>
        <w:defaultTabStop w:val="420"/>
        <w:drawingGridVerticalSpacing w:val="156"/>
        <w:displayHorizontalDrawingGridEvery w:val="0"/>
        <w:displayVerticalDrawingGridEvery w:val="2"/>
        <w:punctuationKerning/>
        <w:characterSpacingControl w:val="CompressPunctuation"/>
        <w:validateAgainstSchema/>
        <w:saveInvalidXML w:val="off"/>
        <w:ignoreMixedContent w:val="off"/>
        <w:alwaysShowPlaceholderText w:val="off"/>
        <w:compat>
      <w:spaceForUL/>
            <w:balanceSingleByteDoubleByteWidth/>
            <w:doNotLeaveBackslashAlone/>
            <w:ulTrailSpace/>
            <w:doNotExpandShiftReturn/>
            <w:adjustLineHeightInTable/>
            <w:breakWrappedTables/>
            <w:snapToGridInCell/>
            <w:wrapTextWithPunct/>
            <w:useAsianBreakRules/>
            <w:dontGrowAutofit/>
            <w:useFELayout/>
    </w:compat>
        <wsp:rsids>
      <wsp:rsidRoot wsp:val="0023669E"/>
            <wsp:rsid wsp:val="00037CD6"/>
            <wsp:rsid wsp:val="0007604D"/>
            <wsp:rsid wsp:val="000C5D74"/>
            <wsp:rsid wsp:val="0011295E"/>
            <wsp:rsid wsp:val="001420C2"/>
            <wsp:rsid wsp:val="001A0456"/>
            <wsp:rsid wsp:val="001B40BF"/>
            <wsp:rsid wsp:val="001F0421"/>
            <wsp:rsid wsp:val="002044E3"/>
            <wsp:rsid wsp:val="0023669E"/>
            <wsp:rsid wsp:val="002E38E9"/>
            <wsp:rsid wsp:val="00351459"/>
            <wsp:rsid wsp:val="003542A5"/>
            <wsp:rsid wsp:val="003B0BD0"/>
            <wsp:rsid wsp:val="004278CA"/>
            <wsp:rsid wsp:val="00453DC3"/>
            <wsp:rsid wsp:val="004C3B33"/>
            <wsp:rsid wsp:val="004C6C99"/>
            <wsp:rsid wsp:val="00551520"/>
            <wsp:rsid wsp:val="005819C6"/>
            <wsp:rsid wsp:val="0060556C"/>
            <wsp:rsid wsp:val="006246D5"/>
            <wsp:rsid wsp:val="006665F1"/>
            <wsp:rsid wsp:val="00753438"/>
            <wsp:rsid wsp:val="00770D65"/>
            <wsp:rsid wsp:val="009105EA"/>
            <wsp:rsid wsp:val="009836E7"/>
            <wsp:rsid wsp:val="0098704E"/>
            <wsp:rsid wsp:val="00A13157"/>
            <wsp:rsid wsp:val="00A915A4"/>
            <wsp:rsid wsp:val="00AE0663"/>
            <wsp:rsid wsp:val="00B02F86"/>
            <wsp:rsid wsp:val="00BA4F57"/>
            <wsp:rsid wsp:val="00BC5B87"/>
            <wsp:rsid wsp:val="00BE7A2A"/>
            <wsp:rsid wsp:val="00C5109B"/>
            <wsp:rsid wsp:val="00C649B1"/>
            <wsp:rsid wsp:val="00DE6E00"/>
            <wsp:rsid wsp:val="00E22A59"/>
            <wsp:rsid wsp:val="00EA5DC4"/>
            <wsp:rsid wsp:val="00EC0891"/>
            <wsp:rsid wsp:val="00F844F2"/>
            <wsp:rsid wsp:val="00F927C1"/>
            <wsp:rsid wsp:val="7076293A"/>
    </wsp:rsids>
  </w:docPr>
    <w:body>
    <wx:sect>
      <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
        <w:pPr>
          <w:jc w:val="center"/>
        </w:pPr>
          <w:r>
          <w:rPr>
            <w:rFonts w:hint="fareast"/>
          </w:rPr>
              <w:t>基金公告</w:t>
        </w:r>
      </w:p>
        <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
        <w:r>
          <w:rPr>
            <w:rFonts w:hint="fareast"/>
          </w:rPr>
            <w:t>表格</w:t>
        </w:r>
            <w:r>
          <w:rPr>
            <w:rFonts w:hint="fareast"/>
          </w:rPr>
                <w:t>1</w:t>
        </w:r>
      </w:p>
        <w:tbl>
        <w:tblPr>
          <w:tblW w:w="0" w:type="auto"/>
            <w:tblBorders>
            <w:top w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
                <w:left w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
                <w:bottom w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
                <w:right w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
                <w:insideH w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
                <w:insideV w:val="single" w:sz="4" wx:bdrwidth="10" w:space="0" w:color="auto"/>
          </w:tblBorders>
            <w:tblLook w:val="04A0"/>
        </w:tblPr>
            <w:tblGrid>
          <w:gridCol w:w="1746"/>
                <w:gridCol w:w="2788"/>
                <w:gridCol w:w="2080"/>
                <w:gridCol w:w="1908"/>
        </w:tblGrid>

            <w:tr wsp:rsidR="00551520" wsp:rsidTr="000C5D74">
          <w:tc>
            <w:tcPr>
              <w:tcW w:w="5664" w:type="dxa"/>
                <w:gridSpan w:val="2"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
              <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:rPr>
                  <w:rFonts w:hint="fareast"/>
                </w:rPr>
                  <w:t th:text="${code_0009}">基金名称</w:t>
              </w:r>
            </w:p>
          </w:tc>
                <w:tc>
            <w:tcPr>
              <w:tcW w:w="4853" w:type="dxa"/>
                <w:gridSpan th:w :val="${chileSize}"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:t th:text="${code_0012}">0009</w:t>
              </w:r>
            </w:p>
          </w:tc>
        </w:tr>
            <w:tr wsp:rsidR="00551520" wsp:rsidTr="000C5D74">
          <w:tc>
            <w:tcPr>
              <w:tcW w:w="5664" w:type="dxa"/>
                <w:gridSpan w:val="2"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
              <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:rPr>
                  <w:rFonts w:hint="fareast"/>
                </w:rPr>
                  <w:t>基金简称</w:t>
              </w:r>
            </w:p>
          </w:tc>
                <w:tc>
            <w:tcPr>
              <w:tcW w:w="4853" w:type="dxa"/>
                <w:gridSpan w:val="2"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:t>0011</w:t>
              </w:r>
            </w:p>
          </w:tc>
        </w:tr>
            <w:tr wsp:rsidR="00551520" wsp:rsidTr="000C5D74">
          <w:tc>
            <w:tcPr>
              <w:tcW w:w="2130" w:type="dxa"/>
                <w:vmerge w:val="restart"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
              <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:rPr>
                  <w:rFonts w:hint="fareast"/>
                </w:rPr>
                  <w:t>暂停相关业务的起始日、金额及原因说明</w:t>
              </w:r>
            </w:p>
          </w:tc>
                <w:tc>
            <w:tcPr>
              <w:tcW w:w="3534" w:type="dxa"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:rPr>
                  <w:rFonts w:hint="fareast"/>
                </w:rPr>
                  <w:t>暂停(大额)申购起始日</w:t>
              </w:r>
            </w:p>
          </w:tc>
                <w:tc>
            <w:tcPr>
              <w:tcW w:w="4853" w:type="dxa"/>
                <w:gridSpan w:val="2"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:t>2838</w:t>
              </w:r>
            </w:p>
          </w:tc>
        </w:tr>
            <w:tr wsp:rsidR="00551520" wsp:rsidTr="000C5D74">
          <w:tc>
            <w:tcPr>
              <w:tcW w:w="2130" w:type="dxa"/>
                <w:vmerge/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
              <w:p wsp:rsidR="00551520" wsp:rsidRDefault="00551520"/>
          </w:tc>
                <w:tc>
            <w:tcPr>
              <w:tcW w:w="3534" w:type="dxa"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:rPr>
                  <w:rFonts w:hint="fareast"/>
                </w:rPr>
                  <w:t>暂停(大额)转换转入起始日</w:t>
              </w:r>
            </w:p>
          </w:tc>
                <w:tc>
            <w:tcPr>
              <w:tcW w:w="4853" w:type="dxa"/>
                <w:gridSpan w:val="2"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:t>2632</w:t>
              </w:r>
            </w:p>
          </w:tc>
        </w:tr>
            <w:tr wsp:rsidR="00551520" wsp:rsidTr="000C5D74">
          <w:tc>
            <w:tcPr>
              <w:tcW w:w="2130" w:type="dxa"/>
                <w:vmerge/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
              <w:p wsp:rsidR="00551520" wsp:rsidRDefault="00551520"/>
          </w:tc>
                <w:tc>
            <w:tcPr>
              <w:tcW w:w="3534" w:type="dxa"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:rPr>
                  <w:rFonts w:hint="fareast"/>
                </w:rPr>
                  <w:t>暂停赎回起始日</w:t>
              </w:r>
            </w:p>
          </w:tc>
                <w:tc>
            <w:tcPr>
              <w:tcW w:w="4853" w:type="dxa"/>
                <w:gridSpan w:val="2"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:t>2798</w:t>
              </w:r>
            </w:p>
          </w:tc>
        </w:tr>
            <w:tr wsp:rsidR="00551520" wsp:rsidTr="000C5D74">
          <w:tc>
            <w:tcPr>
              <w:tcW w:w="5664" w:type="dxa"/>
                <w:gridSpan w:val="2"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
              <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:rPr>
                  <w:rFonts w:hint="fareast"/>
                </w:rPr>
                  <w:t>下属分级基金的基金简称</w:t>
              </w:r>
            </w:p>
          </w:tc>
                <w:tc th:each="ty ,fund01Child:${children}">
            <w:tcPr>
              <w:tcW w:w="2573" w:type="dxa"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:t th:text="${ty.name}"></w:t>
              </w:r>
            </w:p>
          </w:tc>
                <!-- <w:tc>
                  <w:tcPr>
                    <w:tcW w:w="2280" w:type="dxa"/>
                    <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
                  </w:tcPr>
                  <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
                    <w:r>
                      <w:t>0011</w:t>
                    </w:r>
                  </w:p>
                </w:tc> -->
        </w:tr>
            <w:tr wsp:rsidR="00551520" wsp:rsidTr="000C5D74">
          <w:tc>
            <w:tcPr>
              <w:tcW w:w="5664" w:type="dxa"/>
                <w:gridSpan w:val="2"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
              <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:rPr>
                  <w:rFonts w:hint="fareast"/>
                </w:rPr>
                  <w:t>下属分级基金的交易代码</w:t>
              </w:r>
            </w:p>
          </w:tc>
                <w:tc th:each="ty ,fund01Child:${children}">
            <w:tcPr>
              <w:tcW w:w="2573" w:type="dxa"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:t th:text="${ty.code}"></w:t>
              </w:r>
            </w:p>
          </w:tc>
                <!-- <w:tc>
                  <w:tcPr>
                    <w:tcW w:w="2280" w:type="dxa"/>
                    <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
                  </w:tcPr>
                  <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
                    <w:r>
                      <w:t>2810</w:t>
                    </w:r>
                  </w:p>
                </w:tc> -->
        </w:tr>
            <w:tr wsp:rsidR="00551520" wsp:rsidTr="000C5D74">
          <w:tc>
            <w:tcPr>
              <w:tcW w:w="5664" w:type="dxa"/>
                <w:gridSpan w:val="2"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
              <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:rPr>
                  <w:rFonts w:hint="fareast"/>
                </w:rPr>
                  <w:t>该分级基金是否暂停</w:t>
              </w:r>
                  <w:r>
                <w:t>/</w:t>
              </w:r>
                  <w:r>
                <w:t>恢复(大额)申购(转换转入、赎回、转换转出、定期定额投资)</w:t>
              </w:r>
            </w:p>
          </w:tc>
                <w:tc>
            <w:tcPr>
              <w:tcW w:w="2573" w:type="dxa"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:t>2800</w:t>
              </w:r>
            </w:p>
          </w:tc>
                <w:tc>
            <w:tcPr>
              <w:tcW w:w="2280" w:type="dxa"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r>
                <w:t>2800</w:t>
              </w:r>
            </w:p>
          </w:tc>
        </w:tr>
            <w:tr wsp:rsidR="00551520" wsp:rsidTr="000C5D74">
          <w:tc>
            <w:tcPr>
              <w:tcW w:w="5664" w:type="dxa"/>
                <w:gridSpan w:val="2"/>
                <w:vmerge w:val="restart"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
              <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                </w:rPr>
                  <w:t>恢复相关业务的日期及原因说明</w:t>
              </w:r>
            </w:p>
          </w:tc>
                <w:tc>
            <w:tcPr>
              <w:tcW w:w="2573" w:type="dxa"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                </w:rPr>
                  <w:t>恢复(大额)申购日</w:t>
              </w:r>
            </w:p>
          </w:tc>
                <w:tc>
            <w:tcPr>
              <w:tcW w:w="2280" w:type="dxa"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                    <w:kern w:val="0"/>
                    <w:sz w:val="15"/>
                </w:rPr>
                  <w:t>(</w:t>
              </w:r>
                        <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                    <w:kern w:val="0"/>
                    <w:sz w:val="15"/>
                </w:rPr>
                            <w:t>2885</w:t>
              </w:r>
                        <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                    <w:kern w:val="0"/>
                    <w:sz w:val="15"/>
                </w:rPr>
                            <w:t>)</w:t>
              </w:r>
                        <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                    <w:kern w:val="0"/>
                    <w:sz w:val="15"/>
                </w:rPr>
                            <w:t>/</w:t>
              </w:r>
                        <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                    <w:kern w:val="0"/>
                    <w:sz w:val="15"/>
                </w:rPr>
                            <w:t>(</w:t>
              </w:r>
                        <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                    <w:kern w:val="0"/>
                    <w:sz w:val="15"/>
                </w:rPr>
                            <w:t>2806</w:t>
              </w:r>
                        <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                    <w:kern w:val="0"/>
                    <w:sz w:val="15"/>
                </w:rPr>
                            <w:t>)</w:t>
              </w:r>
            </w:p>
          </w:tc>
        </w:tr>
            <w:tr wsp:rsidR="00551520" wsp:rsidTr="000C5D74">
          <w:tc>
            <w:tcPr>
              <w:tcW w:w="5664" w:type="dxa"/>
                <w:gridSpan w:val="2"/>
                <w:vmerge/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
              <w:p wsp:rsidR="00551520" wsp:rsidRDefault="00551520"/>
          </w:tc>
                <w:tc>
            <w:tcPr>
              <w:tcW w:w="2573" w:type="dxa"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                </w:rPr>
                  <w:t>恢复(大额)转换转入日</w:t>
              </w:r>
            </w:p>
          </w:tc>
                <w:tc>
            <w:tcPr>
              <w:tcW w:w="2280" w:type="dxa"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                    <w:kern w:val="0"/>
                    <w:sz w:val="15"/>
                </w:rPr>
                  <w:t>(</w:t>
              </w:r>
                        <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                    <w:kern w:val="0"/>
                    <w:sz w:val="15"/>
                </w:rPr>
                            <w:t>2634</w:t>
              </w:r>
                        <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                    <w:kern w:val="0"/>
                    <w:sz w:val="15"/>
                </w:rPr>
                            <w:t>)</w:t>
              </w:r>
                        <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                    <w:kern w:val="0"/>
                    <w:sz w:val="15"/>
                </w:rPr>
                            <w:t>/</w:t>
              </w:r>
                        <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                    <w:kern w:val="0"/>
                    <w:sz w:val="15"/>
                </w:rPr>
                            <w:t>(</w:t>
              </w:r>
                        <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                    <w:kern w:val="0"/>
                    <w:sz w:val="15"/>
                </w:rPr>
                            <w:t>2886</w:t>
              </w:r>
                        <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                    <w:kern w:val="0"/>
                    <w:sz w:val="15"/>
                </w:rPr>
                            <w:t>)</w:t>
              </w:r>
            </w:p>
          </w:tc>
        </w:tr>
            <w:tr wsp:rsidR="00551520" wsp:rsidTr="000C5D74">
          <w:tc>
            <w:tcPr>
              <w:tcW w:w="5664" w:type="dxa"/>
                <w:gridSpan w:val="2"/>
                <w:vmerge/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
              <w:p wsp:rsidR="00551520" wsp:rsidRDefault="00551520"/>
          </w:tc>
                <w:tc>
            <w:tcPr>
              <w:tcW w:w="2573" w:type="dxa"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                </w:rPr>
                  <w:t>恢复赎回日</w:t>
              </w:r>
            </w:p>
          </w:tc>
                <w:tc>
            <w:tcPr>
              <w:tcW w:w="2280" w:type="dxa"/>
                <w:shd w:val="clear" w:color="auto" w:fill="auto"/>
            </w:tcPr>
                    <w:p wsp:rsidR="00551520" wsp:rsidRDefault="000C5D74">
              <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                    <w:kern w:val="0"/>
                    <w:sz w:val="15"/>
                </w:rPr>
                  <w:t>(</w:t>
              </w:r>
                        <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                    <w:kern w:val="0"/>
                    <w:sz w:val="15"/>
                </w:rPr>
                            <w:t>2807</w:t>
              </w:r>
                        <w:r wsp:rsidRPr="000C5D74">
                <w:rPr>
                  <w:color w:val="000000"/>
                    <w:kern w:val="0"/>
                    <w:sz w:val="15"/>
                </w:rPr>
                            <w:t>)</w:t>
              </w:r>
            </w:p>
          </w:tc>
        </w:tr>
      </w:tbl>
        <w:p wsp:rsidR="00551520" wsp:rsidRDefault="00551520"/>
        <w:sectPr wsp:rsidR="00551520">
        <w:pgSz w:w="11906" w:h="16838"/>
            <w:pgMar w:top="1440" w:right="1800" w:bottom="1440" w:left="1800" w:header="851" w:footer="992"
                     w:gutter="0"/>
            <w:cols w:space="425"/>
            <w:docGrid w:type="lines" w:line-pitch="312"/>
      </w:sectPr>
    </wx:sect>
  </w:body>
</w:wordDocument>

java代码部分

package com.unique.controller;

import com.alibaba.fastjson.JSON;
import com.unique.bean.Fund01;
import com.unique.bean.Fund01Child;
import com.unique.utils.TemplateUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.beanutils.BeanMap;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * description:
 */
@RestController
@Slf4j
public class FundController {


    @Autowired
    private TemplateUtils templateUtils;

    @RequestMapping(value = "getFund01Word")
    public void getFund01Word(){

        Fund01 fund01 = new Fund01();
        fund01.setCode_0009("创金合信港股通成长股票型发起式证券投资基金"); //基金名称
        fund01.setCode_0011("创金合信港股通成长股票"); //基金简称
        fund01.setCode_0012("012315"); //基金主代码
        fund01.setCode_0186("创金合信基金管理有限公司"); //基金管理人名称
        fund01.setCode_2631("《创金合信港股通成长股票型发起式证券投资基金基金合同》(以下简称\"《基金合同》\")、《创金合信港股通成长股票型发起式证券投资基金招募说明书》(以下简称\"《招募说明书》\")等"); //公告依据
        fund01.setCode_2838(""); //暂停(大额)申购起始日
        fund01.setCode_2632("2021-07-27"); //暂停(大额)转换转入起始日
        fund01.setCode_2798(""); //暂停赎回起始日
        fund01.setCode_2633(""); //暂停转换转出起始日
        fund01.setCode_2799("2021-07-27"); //暂停定期定额投资起始日
        fund01.setCode_2800(""); //限制申购金额(单位:)
        fund01.setCode_2801(""); //限制转换转入金额(单位:)
        fund01.setCode_2885(""); //恢复(大额)申购日
        fund01.setCode_2634(""); //恢复(大额)转换转入日
        fund01.setCode_2807(""); //恢复赎回日
        fund01.setCode_2635(""); //恢复转换转出日
        fund01.setCode_2808(""); //恢复定期定额投资日
        fund01.setCode_2809("为了保证基金的平稳运作,保护基金份额持有人利益"); //恢复(大额)申购(转换转入、赎回、转换转出、定期定额投资)的原因说明)
        List<Fund01Child> children = new ArrayList<>();
        Fund01Child child01 = new Fund01Child();
        child01.setName("嘉合同顺智选股票A");
        child01.setCode("009106");
        Fund01Child child02 = new Fund01Child();
        child02.setName("嘉合同顺智选股票C");
        child02.setCode("009107");
        children.add(child01);
        children.add(child02);
        fund01.setChildren(children);

        String s = JSON.toJSONString(fund01);

        Map map = JSON.parseObject(s, Map.class);
        log.info("子基金个数:{}",fund01.getChildren().size());
        map.put("chileSize", fund01.getChildren().size());


        templateUtils.generateWord("templates/",".xml","table003",map,"D:\\data\\word\\test\\0802001.doc");

        log.info("MapData:{}",map);

    }

}

模板工具类

package com.unique.utils;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.thymeleaf.TemplateEngine;
import org.thymeleaf.context.Context;
import org.thymeleaf.templatemode.TemplateMode;
import org.thymeleaf.templateresolver.ClassLoaderTemplateResolver;

import java.io.File;
import java.io.FileOutputStream;
import java.util.Map;

/**
 * description:
 */
@Component
@Slf4j
public class TemplateUtils {

    /**
     * generateWord
     * @param Prefix
     * @param Suffix
     * @param template_name
     * @param variablesMap
     * @param file_path
     */
    public void generateWord(String Prefix, String Suffix, String template_name, Map<String, Object> variablesMap, String file_path) {
        File file = new File(file_path);
        try (
            FileOutputStream fileOutputStream = new FileOutputStream(file)) {
            TemplateEngine templateEngine = new TemplateEngine();
            ClassLoaderTemplateResolver templateResolver = new ClassLoaderTemplateResolver();
            templateResolver.setTemplateMode(TemplateMode.HTML);
            templateResolver.setPrefix(Prefix);
            templateResolver.setSuffix(Suffix);
            templateResolver.setCharacterEncoding("UTF-8");
            templateEngine.setTemplateResolver(templateResolver);
            Context context = new Context();
            context.setVariables(variablesMap);
            String ht = templateEngine.process(template_name, context);
            fileOutputStream.write(ht.getBytes());
        } catch (Exception e) {
           log.error("generateWord 异常:{}",e.getMessage());
        }
    }
}

java对象

package com.unique.bean;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * description:
 * 基金暂停/恢复(大额)申购(转换转入、赎回、转换转出、定期定额投资)
 */
@Data
public class Fund01 {

    private String code_0009; //基金名称
    private String code_0011; //基金简称
    private String code_0012; //基金主代码
    private String code_0186; //基金管理人名称
    private String code_2631; //公告依据

    /**
     * 暂停相关业务的起始日、金额及原因说明
     */
    private String code_2838; //暂停(大额)申购起始日
    private String code_2632; //暂停(大额)转换转入起始日
    private String code_2798; //暂停赎回起始日
    private String code_2633; //暂停转换转出起始日
    private String code_2799; //暂停定期定额投资起始日
    private String code_2800; //限制申购金额(单位:)
    private String code_2801; //限制转换转入金额(单位:)

    /**
     * 恢复相关业务的日期及原因说明
     */
    private String code_2885; //恢复(大额)申购日
    private String code_2634; //恢复(大额)转换转入日
    private String code_2807; //恢复赎回日

    private String code_2635; //恢复转换转出日
    private String code_2808; //恢复定期定额投资日
    private String code_2809; //恢复(大额)申购(转换转入、赎回、转换转出、定期定额投资)的原因说明)
    /**
     * 下属分级
     */
    private List<Fund01Child> children; //下属分级基金的基金简称

    private String code_2810; //该分级基金是否暂停/恢复(大额)申购(转换转入、赎回、转换转出、定期定额投资)
    private String code_2800_02; //下属分级基金的限制申购金额(单位:  )
    private String code_2801_02; //下属分级基金的限制转换转入金额(单位: )

}

 运行效果

生成文件效果 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值