流程手册、表单手册、岗位手册表格内文本换行出现空白处理,目的、附则由文本处理为表格模式

This commit is contained in:
446052889@qq.com 2022-09-21 17:49:15 +08:00
parent 5c78ee865c
commit ceac3b68fb
10 changed files with 85 additions and 14 deletions

View File

@ -60,7 +60,7 @@ public class Report1Gener {
private UserContext userContext = null; private UserContext userContext = null;
GenerLogExd log = new GenerLogExd(); GenerLogExd log = new GenerLogExd();
//word换行符 //word换行符
private final String WRAPSTRING = "</w:t></w:r></w:p><w:p><w:pPr><w:keepNext w:val=\"off\"/><w:keepLines w:val=\"off\"/><w:pageBreakBefore w:val=\"off\"/><w:widowControl/><w:kinsoku/><w:wordWrap/><w:overflowPunct/><w:topLinePunct w:val=\"off\"/><w:autoSpaceDE/><w:autoSpaceDN/><w:adjustRightInd/><w:snapToGrid/><w:spacing w:line=\"240\" w:line-rule=\"auto\"/><w:ind w:left=\"56\" w:right=\"0\" w:right-chars=\"0\" w:first-line=\"0\" w:first-line-chars=\"0\"/><w:jc w:val=\"both\"/><w:textAlignment w:val=\"auto\"/><w:outlineLvl w:val=\"9\"/><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr></w:pPr><w:r><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr><w:t>"; private final String WRAPSTRING = "</w:t></w:r></w:p><w:p><w:pPr><w:keepNext w:val=\"off\"/><w:keepLines w:val=\"off\"/><w:pageBreakBefore w:val=\"off\"/><w:widowControl/><w:kinsoku/><w:wordWrap/><w:overflowPunct/><w:topLinePunct w:val=\"off\"/><w:autoSpaceDE/><w:autoSpaceDN/><w:adjustRightInd/><w:snapToGrid/><w:spacing w:line=\"240\" w:line-rule=\"auto\"/><w:ind w:left=\"0\" w:right=\"0\" w:right-chars=\"0\" w:first-line=\"0\" w:first-line-chars=\"0\"/><w:jc w:val=\"both\"/><w:textAlignment w:val=\"auto\"/><w:outlineLvl w:val=\"9\"/><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr></w:pPr><w:r><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr><w:t>";
public Report1Gener() { public Report1Gener() {
} }
@ -511,6 +511,26 @@ public class Report1Gener {
// 修订记录 // 修订记录
dataMap.put("version_history_table", getVersionHistoryTable(repositoryModel)); dataMap.put("version_history_table", getVersionHistoryTable(repositoryModel));
// 附则处理
List<String> T_supplementary_articles_table = new ArrayList<>();
String [] tmp = dataMap.getString("pl_T_supplementary_articles").split("\n");
for (int i = 0; i < tmp.length; i++) {
if (UtilString.isNotEmpty(tmp[i])) {
T_supplementary_articles_table.add(tmp[i]);
}
}
dataMap.put("T_supplementary_articles_table", T_supplementary_articles_table);// 换行
// 目的处理
List<String> goal_table = new ArrayList<>();
String [] tmp2 = dataMap.getString("pl_goal").split("\n");
for (int i = 0; i < tmp2.length; i++) {
if (UtilString.isNotEmpty(tmp2[i])) {
goal_table.add(tmp2[i]);
}
}
dataMap.put("goal_table", goal_table);
//术语 //术语
dataMap.put("term_table", termTable);//table4 dataMap.put("term_table", termTable);//table4
dataMap.put("term_table_count", termTable.size());//table4 dataMap.put("term_table_count", termTable.size());//table4

View File

@ -58,7 +58,7 @@ public class Report2Gener {
private UserContext userContext = null; private UserContext userContext = null;
GenerLogExd log = new GenerLogExd(); GenerLogExd log = new GenerLogExd();
//word换行符 //word换行符
private final String WRAPSTRING = "</w:t></w:r></w:p><w:p><w:pPr><w:keepNext w:val=\"off\"/><w:keepLines w:val=\"off\"/><w:pageBreakBefore w:val=\"off\"/><w:widowControl/><w:kinsoku/><w:wordWrap/><w:overflowPunct/><w:topLinePunct w:val=\"off\"/><w:autoSpaceDE/><w:autoSpaceDN/><w:adjustRightInd/><w:snapToGrid/><w:spacing w:line=\"240\" w:line-rule=\"auto\"/><w:ind w:left=\"56\" w:right=\"0\" w:right-chars=\"0\" w:first-line=\"0\" w:first-line-chars=\"0\"/><w:jc w:val=\"both\"/><w:textAlignment w:val=\"auto\"/><w:outlineLvl w:val=\"9\"/><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr></w:pPr><w:r><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr><w:t>"; private final String WRAPSTRING = "</w:t></w:r></w:p><w:p><w:pPr><w:keepNext w:val=\"off\"/><w:keepLines w:val=\"off\"/><w:pageBreakBefore w:val=\"off\"/><w:widowControl/><w:kinsoku/><w:wordWrap/><w:overflowPunct/><w:topLinePunct w:val=\"off\"/><w:autoSpaceDE/><w:autoSpaceDN/><w:adjustRightInd/><w:snapToGrid/><w:spacing w:line=\"240\" w:line-rule=\"auto\"/><w:ind w:left=\"0\" w:right=\"0\" w:right-chars=\"0\" w:first-line=\"0\" w:first-line-chars=\"0\"/><w:jc w:val=\"both\"/><w:textAlignment w:val=\"auto\"/><w:outlineLvl w:val=\"9\"/><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr></w:pPr><w:r><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr><w:t>";
public Report2Gener() { public Report2Gener() {
} }
@ -490,6 +490,26 @@ public class Report2Gener {
// 修订记录 // 修订记录
dataMap.put("version_history_table", getVersionHistoryTable(repositoryModel)); dataMap.put("version_history_table", getVersionHistoryTable(repositoryModel));
// 附则处理
List<String> T_supplementary_articles_table = new ArrayList<>();
String [] tmp = dataMap.getString("pl_T_supplementary_articles").split("\n");
for (int i = 0; i < tmp.length; i++) {
if (UtilString.isNotEmpty(tmp[i])) {
T_supplementary_articles_table.add(tmp[i]);
}
}
dataMap.put("T_supplementary_articles_table", T_supplementary_articles_table);// 换行
// 目的处理
List<String> goal_table = new ArrayList<>();
String [] tmp2 = dataMap.getString("pl_goal").split("\n");
for (int i = 0; i < tmp2.length; i++) {
if (UtilString.isNotEmpty(tmp2[i])) {
goal_table.add(tmp2[i]);
}
}
dataMap.put("goal_table", goal_table);
//术语 //术语
dataMap.put("term_table", termTable);//table4 dataMap.put("term_table", termTable);//table4
dataMap.put("term_table_count", termTable.size());//table4 dataMap.put("term_table_count", termTable.size());//table4

View File

@ -4250,6 +4250,7 @@ y7fdOgAAAABJRU5ErkJggk==
</w:r> </w:r>
<aml:annotation aml:id="0" w:type="Word.Bookmark.End"/> <aml:annotation aml:id="0" w:type="Word.Bookmark.End"/>
</w:p> </w:p>
<#list goal_table as table1>
<w:p wsp:rsidR="00AC2941" wsp:rsidRPr="00696C8C" wsp:rsidRDefault="00696C8C" wsp:rsidP="00783EFF"> <w:p wsp:rsidR="00AC2941" wsp:rsidRPr="00696C8C" wsp:rsidRDefault="00696C8C" wsp:rsidP="00783EFF">
<w:pPr> <w:pPr>
<w:pStyle w:val="IDSTYLECONTEXTINDENT"/> <w:pStyle w:val="IDSTYLECONTEXTINDENT"/>
@ -4263,9 +4264,10 @@ y7fdOgAAAABJRU5ErkJggk==
<w:rPr> <w:rPr>
<w:rFonts w:hint="fareast"/> <w:rFonts w:hint="fareast"/>
</w:rPr> </w:rPr>
<w:t>${pl_goal}</w:t> <w:t>${table1}</w:t>
</w:r> </w:r>
</w:p> </w:p>
</#list>
</wx:sub-section> </wx:sub-section>
<wx:sub-section> <wx:sub-section>
<w:p wsp:rsidR="00AC2941" wsp:rsidRDefault="00AC2941"> <w:p wsp:rsidR="00AC2941" wsp:rsidRDefault="00AC2941">
@ -5483,7 +5485,7 @@ y7fdOgAAAABJRU5ErkJggk==
<w:sz w:val="21"/> <w:sz w:val="21"/>
<w:sz-cs w:val="21"/> <w:sz-cs w:val="21"/>
</w:rPr> </w:rPr>
<w:t>${table2.shape_activity_description}</w:t> <w:t>${table2.shape_name}</w:t>
</w:r> </w:r>
</w:p> </w:p>
</w:tc> </w:tc>
@ -7155,8 +7157,10 @@ y7fdOgAAAABJRU5ErkJggk==
</w:r> </w:r>
<aml:annotation aml:id="8" w:type="Word.Bookmark.End"/> <aml:annotation aml:id="8" w:type="Word.Bookmark.End"/>
</w:p> </w:p>
<w:p wsp:rsidR="00546297" wsp:rsidRPr="00783EFF" wsp:rsidRDefault="00140F58" wsp:rsidP="00783EFF"> <#list T_supplementary_articles_table as table1>
<w:p wsp:rsidR="00546297" wsp:rsidRPr="00783EFF" wsp:rsidRDefault="00140F58" wsp:rsidP="003B260F">
<w:pPr> <w:pPr>
<w:spacing w:line="360" w:line-rule="auto"/>
<w:ind w:first-line-chars="200" w:first-line="480"/> <w:ind w:first-line-chars="200" w:first-line="480"/>
<w:rPr> <w:rPr>
<w:rFonts w:ascii="宋体" w:h-ansi="宋体"/> <w:rFonts w:ascii="宋体" w:h-ansi="宋体"/>
@ -7168,9 +7172,10 @@ y7fdOgAAAABJRU5ErkJggk==
<w:rFonts w:ascii="宋体" w:h-ansi="宋体"/> <w:rFonts w:ascii="宋体" w:h-ansi="宋体"/>
<wx:font wx:val="宋体"/> <wx:font wx:val="宋体"/>
</w:rPr> </w:rPr>
<w:t>${pl_T_supplementary_articles}</w:t> <w:t>${table1}</w:t>
</w:r> </w:r>
</w:p> </w:p>
</#list>
<w:p wsp:rsidR="00140F58" wsp:rsidRPr="00783EFF" wsp:rsidRDefault="00140F58"> <w:p wsp:rsidR="00140F58" wsp:rsidRPr="00783EFF" wsp:rsidRDefault="00140F58">
<w:pPr> <w:pPr>
<w:rPr> <w:rPr>

View File

@ -4311,6 +4311,7 @@ y7fdOgAAAABJRU5ErkJggk==
</w:r> </w:r>
<aml:annotation aml:id="0" w:type="Word.Bookmark.End"/> <aml:annotation aml:id="0" w:type="Word.Bookmark.End"/>
</w:p> </w:p>
<#list goal_table as table1>
<w:p wsp:rsidR="00AC2941" wsp:rsidRPr="00696C8C" wsp:rsidRDefault="00696C8C" wsp:rsidP="00BA58C7"> <w:p wsp:rsidR="00AC2941" wsp:rsidRPr="00696C8C" wsp:rsidRDefault="00696C8C" wsp:rsidP="00BA58C7">
<w:pPr> <w:pPr>
<w:pStyle w:val="IDSTYLECONTEXTINDENT"/> <w:pStyle w:val="IDSTYLECONTEXTINDENT"/>
@ -4324,9 +4325,10 @@ y7fdOgAAAABJRU5ErkJggk==
<w:rPr> <w:rPr>
<w:rFonts w:hint="fareast"/> <w:rFonts w:hint="fareast"/>
</w:rPr> </w:rPr>
<w:t>${pl_goal}</w:t> <w:t>${table1}</w:t>
</w:r> </w:r>
</w:p> </w:p>
</#list>
</wx:sub-section> </wx:sub-section>
<wx:sub-section> <wx:sub-section>
<w:p wsp:rsidR="00AC2941" wsp:rsidRDefault="00AC2941"> <w:p wsp:rsidR="00AC2941" wsp:rsidRDefault="00AC2941">
@ -6926,6 +6928,7 @@ y7fdOgAAAABJRU5ErkJggk==
</w:r> </w:r>
<aml:annotation aml:id="8" w:type="Word.Bookmark.End"/> <aml:annotation aml:id="8" w:type="Word.Bookmark.End"/>
</w:p> </w:p>
<#list T_supplementary_articles_table as table1>
<w:p wsp:rsidR="00546297" wsp:rsidRPr="000D3488" wsp:rsidRDefault="00140F58" wsp:rsidP="00C14A28"> <w:p wsp:rsidR="00546297" wsp:rsidRPr="000D3488" wsp:rsidRDefault="00140F58" wsp:rsidP="00C14A28">
<w:pPr> <w:pPr>
<w:spacing w:line="360" w:line-rule="auto"/> <w:spacing w:line="360" w:line-rule="auto"/>
@ -6940,9 +6943,10 @@ y7fdOgAAAABJRU5ErkJggk==
<w:rFonts w:ascii="宋体" w:h-ansi="宋体"/> <w:rFonts w:ascii="宋体" w:h-ansi="宋体"/>
<wx:font wx:val="宋体"/> <wx:font wx:val="宋体"/>
</w:rPr> </w:rPr>
<w:t>${pl_T_supplementary_articles}</w:t> <w:t>${table1}</w:t>
</w:r> </w:r>
</w:p> </w:p>
</#list>
<w:p wsp:rsidR="00140F58" wsp:rsidRPr="00543C89" wsp:rsidRDefault="00140F58" wsp:rsidP="00C14A28"> <w:p wsp:rsidR="00140F58" wsp:rsidRPr="00543C89" wsp:rsidRDefault="00140F58" wsp:rsidP="00C14A28">
<w:pPr> <w:pPr>
<w:spacing w:line="360" w:line-rule="auto"/> <w:spacing w:line="360" w:line-rule="auto"/>

View File

@ -55,7 +55,7 @@ public class Report1Gener {
private UserContext userContext = null; private UserContext userContext = null;
GenerLogExd log = new GenerLogExd(); GenerLogExd log = new GenerLogExd();
//word换行符 //word换行符
private final String WRAPSTRING = "</w:t></w:r></w:p><w:p><w:pPr><w:keepNext w:val=\"off\"/><w:keepLines w:val=\"off\"/><w:pageBreakBefore w:val=\"off\"/><w:widowControl/><w:kinsoku/><w:wordWrap/><w:overflowPunct/><w:topLinePunct w:val=\"off\"/><w:autoSpaceDE/><w:autoSpaceDN/><w:adjustRightInd/><w:snapToGrid/><w:spacing w:line=\"240\" w:line-rule=\"auto\"/><w:ind w:left=\"56\" w:right=\"0\" w:right-chars=\"0\" w:first-line=\"0\" w:first-line-chars=\"0\"/><w:jc w:val=\"both\"/><w:textAlignment w:val=\"auto\"/><w:outlineLvl w:val=\"9\"/><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr></w:pPr><w:r><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr><w:t>"; private final String WRAPSTRING = "</w:t></w:r></w:p><w:p><w:pPr><w:keepNext w:val=\"off\"/><w:keepLines w:val=\"off\"/><w:pageBreakBefore w:val=\"off\"/><w:widowControl/><w:kinsoku/><w:wordWrap/><w:overflowPunct/><w:topLinePunct w:val=\"off\"/><w:autoSpaceDE/><w:autoSpaceDN/><w:adjustRightInd/><w:snapToGrid/><w:spacing w:line=\"240\" w:line-rule=\"auto\"/><w:ind w:left=\"0\" w:right=\"0\" w:right-chars=\"0\" w:first-line=\"0\" w:first-line-chars=\"0\"/><w:jc w:val=\"both\"/><w:textAlignment w:val=\"auto\"/><w:outlineLvl w:val=\"9\"/><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr></w:pPr><w:r><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr><w:t>";
public Report1Gener() { public Report1Gener() {
} }

View File

@ -62,7 +62,7 @@ public class Report1Gener {
private UserContext userContext = null; private UserContext userContext = null;
GenerLogExd log = new GenerLogExd(); GenerLogExd log = new GenerLogExd();
//word换行符 //word换行符
private final String WRAPSTRING = "</w:t></w:r></w:p><w:p><w:pPr><w:keepNext w:val=\"off\"/><w:keepLines w:val=\"off\"/><w:pageBreakBefore w:val=\"off\"/><w:widowControl/><w:kinsoku/><w:wordWrap/><w:overflowPunct/><w:topLinePunct w:val=\"off\"/><w:autoSpaceDE/><w:autoSpaceDN/><w:adjustRightInd/><w:snapToGrid/><w:spacing w:line=\"240\" w:line-rule=\"auto\"/><w:ind w:left=\"56\" w:right=\"0\" w:right-chars=\"0\" w:first-line=\"0\" w:first-line-chars=\"0\"/><w:jc w:val=\"both\"/><w:textAlignment w:val=\"auto\"/><w:outlineLvl w:val=\"9\"/><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr></w:pPr><w:r><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr><w:t>"; private final String WRAPSTRING = "</w:t></w:r></w:p><w:p><w:pPr><w:keepNext w:val=\"off\"/><w:keepLines w:val=\"off\"/><w:pageBreakBefore w:val=\"off\"/><w:widowControl/><w:kinsoku/><w:wordWrap/><w:overflowPunct/><w:topLinePunct w:val=\"off\"/><w:autoSpaceDE/><w:autoSpaceDN/><w:adjustRightInd/><w:snapToGrid/><w:spacing w:line=\"240\" w:line-rule=\"auto\"/><w:ind w:left=\"0\" w:right=\"0\" w:right-chars=\"0\" w:first-line=\"0\" w:first-line-chars=\"0\"/><w:jc w:val=\"both\"/><w:textAlignment w:val=\"auto\"/><w:outlineLvl w:val=\"9\"/><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr></w:pPr><w:r><w:rPr><w:rFonts w:ascii=\"宋体\" w:h-ansi=\"宋体\" w:fareast=\"宋体\" w:cs=\"宋体\" w:hint=\"fareast\"/><w:color w:val=\"auto\"/><w:sz w:val=\"21\"/><w:sz-cs w:val=\"21\"/><w:lang w:val=\"EN-US\"/></w:rPr><w:t>";
public Report1Gener() { public Report1Gener() {
} }
@ -663,9 +663,27 @@ public class Report1Gener {
// 修订记录 // 修订记录
dataMap.put("version_history_table", getVersionHistoryTable(repositoryModel)); dataMap.put("version_history_table", getVersionHistoryTable(repositoryModel));
// 附则处理 // 附则处理
dataMap.put("T_supplementary_articles_count", dataMap.getString("pl_T_supplementary_articles").length()); List<String> T_supplementary_articles_table = new ArrayList<>();
String [] tmp = dataMap.getString("pl_T_supplementary_articles").split("\n");
for (int i = 0; i < tmp.length; i++) {
if (UtilString.isNotEmpty(tmp[i])) {
T_supplementary_articles_table.add(tmp[i]);
}
}
dataMap.put("T_supplementary_articles_table", T_supplementary_articles_table);// 换行
dataMap.put("T_supplementary_articles_count", T_supplementary_articles_table.size());
// 目的处理 // 目的处理
dataMap.put("Purpose_count", dataMap.getString("pl_Purpose").length()); List<String> Purpose_table = new ArrayList<>();
String [] tmp2 = dataMap.getString("pl_Purpose").split("\n");
for (int i = 0; i < tmp2.length; i++) {
if (UtilString.isNotEmpty(tmp2[i])) {
Purpose_table.add(tmp2[i]);
}
}
dataMap.put("Purpose_count", Purpose_table.size());
dataMap.put("Purpose_table", Purpose_table);
// 条款word xml内容处理 // 条款word xml内容处理
dataMap.put("control_content_count", contentXml.length()); dataMap.put("control_content_count", contentXml.length());
dataMap.put("control_content", contentXml); dataMap.put("control_content", contentXml);

View File

@ -5723,6 +5723,7 @@ y7fdOgAAAABJRU5ErkJggk==
</w:r> </w:r>
</w:p> </w:p>
<#else> <#else>
<#list Purpose_table as table1>
<w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00741391"> <w:p wsp:rsidR="002737AF" wsp:rsidRDefault="002737AF" wsp:rsidP="00741391">
<w:pPr> <w:pPr>
<w:tabs> <w:tabs>
@ -5740,9 +5741,10 @@ y7fdOgAAAABJRU5ErkJggk==
<w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:cs="宋体"/> <w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:cs="宋体"/>
<wx:font wx:val="宋体"/> <wx:font wx:val="宋体"/>
</w:rPr> </w:rPr>
<w:t>${pl_Purpose}</w:t> <w:t>${table1}</w:t>
</w:r> </w:r>
</w:p> </w:p>
</#list>
</#if> </#if>
</wx:sub-section> </wx:sub-section>
<wx:sub-section> <wx:sub-section>
@ -6612,6 +6614,7 @@ y7fdOgAAAABJRU5ErkJggk==
</w:r> </w:r>
</w:p> </w:p>
<#else> <#else>
<#list T_supplementary_articles_table as table1>
<w:p wsp:rsidR="002737AF" wsp:rsidRPr="00741391" wsp:rsidRDefault="002737AF" wsp:rsidP="00741391"> <w:p wsp:rsidR="002737AF" wsp:rsidRPr="00741391" wsp:rsidRDefault="002737AF" wsp:rsidP="00741391">
<w:pPr> <w:pPr>
<w:spacing w:line="360" w:line-rule="auto"/> <w:spacing w:line="360" w:line-rule="auto"/>
@ -6627,9 +6630,10 @@ y7fdOgAAAABJRU5ErkJggk==
<w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:hint="fareast"/> <w:rFonts w:ascii="宋体" w:h-ansi="宋体" w:hint="fareast"/>
<wx:font wx:val="宋体"/> <wx:font wx:val="宋体"/>
</w:rPr> </w:rPr>
<w:t>${pl_T_supplementary_articles}</w:t> <w:t>${table1}</w:t>
</w:r> </w:r>
</w:p> </w:p>
</#list>
</#if> </#if>
</wx:sub-section> </wx:sub-section>
<wx:sub-section> <wx:sub-section>