Commit d463e4ca authored by Quxl's avatar Quxl

x

parent b73b2575
...@@ -601,10 +601,10 @@ public class ExportServiceImpl implements ExportService { ...@@ -601,10 +601,10 @@ public class ExportServiceImpl implements ExportService {
Row row = sheet.getRow(y-1); Row row = sheet.getRow(y-1);
Cell cell = row.getCell(x-1); Cell cell = row.getCell(x-1);
String tplValue = cell.getStringCellValue(); String tplValue = cell.getStringCellValue();
if(StringUtil.isBlank(tplValue)) { if(StringUtil.isNotBlank(tplValue) && tplValue.contains("_")) {
cell.setCellValue(value);
} else {
cell.setCellValue(tplValue.replaceFirst("_+", value)); cell.setCellValue(tplValue.replaceFirst("_+", value));
} else {
cell.setCellValue(value);
} }
} }
wb.write(os); wb.write(os);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment