适用范围增加换行显示

This commit is contained in:
zhaol 2025-06-03 16:19:05 +08:00
parent 3ac8502545
commit 110c016c59
2 changed files with 6 additions and 0 deletions

View File

@ -47,6 +47,10 @@ public class PrReportComment {
public static String TARGET_METHOD_SCOPE = "process.bpmn2,process.epc,process.flowchart,engineering.standard";
public static String PROCESS_STEP = "userTask,serviceTask,manualTask,receiveTask,sendTask,scriptTask,businessRuleTask,callActivityCallingProcess,method,process,predefinedProcess,decision";
//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=\"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>";
/**
* 获取报告公共数据
* com.alibaba.fastjson
@ -113,6 +117,8 @@ public class PrReportComment {
}
}
dataMap.put("pl_" + propertyObj.getString("key"), "V"+plver);
}else if("application".equals(propertyObj.getString("key"))) {
dataMap.put("pl_application", value.replace("\n", WRAPSTRING));
}else {
dataMap.put("pl_" + propertyObj.getString("key"), value);
}