2023年11月15日 修复导出串行的问题
This commit is contained in:
parent
8b5c442fa6
commit
81ed5cd049
|
@ -685,13 +685,13 @@ public class Export extends BaseExport {
|
|||
sm.append(" 异常率:");
|
||||
//计算!
|
||||
sm.append(getPercentageByAll(new BigDecimal(twoYcListClass.getYccs()),new BigDecimal(twoYcListClass.getJccs())));
|
||||
sm.append("\r\n");
|
||||
sm.append("\n");
|
||||
i++;
|
||||
|
||||
}
|
||||
|
||||
if(nextBlockList.isEmpty()){
|
||||
sm.append("\r\n");
|
||||
sm.append("\n");
|
||||
}
|
||||
|
||||
// String sm = "1.异常节次:"+ArrayUtil.join(o.getYcHhList().toArray(new String[]{}),",")+" 异常课程:"+ArrayUtil.join(o.getYcKcmcList().toArray(new String[]{}),",")+" 监测次数:"+jccs+" 异常次数:"+yccs+" 异常率:"+ycl;
|
||||
|
|
|
@ -444,7 +444,7 @@ public class WordOperator {
|
|||
value = StringEscapeUtils.unescapeHtml4(value);
|
||||
key = "";
|
||||
//--2020-04修改
|
||||
String[] values = value.split("\r\n");
|
||||
String[] values = value.split("\n");
|
||||
if(values.length > 1) {
|
||||
run.setText(values[0],0);
|
||||
for (int x = 1; x < values.length; x++) {
|
||||
|
@ -492,7 +492,7 @@ public class WordOperator {
|
|||
if(style != null) style.run(run);
|
||||
value = StringEscapeUtils.unescapeHtml4(value);
|
||||
//--2020-04修改
|
||||
String[] values = value.split("\r\n");
|
||||
String[] values = value.split("\n");
|
||||
if(values.length > 1) {
|
||||
run.setText(textBefore + values[0],0);
|
||||
for (int x = 1; x < values.length; x++) {
|
||||
|
@ -530,7 +530,7 @@ public class WordOperator {
|
|||
if(style != null) style.run(run);
|
||||
value = StringEscapeUtils.unescapeHtml4(value);
|
||||
//--2020-04修改
|
||||
String[] values = value.toString().split("\r\n");
|
||||
String[] values = value.toString().split("\n");
|
||||
if(values.length > 1) {
|
||||
run.setText(values[0],0);
|
||||
for (int x = 1; x < values.length; x++) {
|
||||
|
|
Loading…
Reference in New Issue