Commit ff8cdc20 authored by sherlock's avatar sherlock

cell.getStringCellValue()

parent b3973270
...@@ -355,6 +355,7 @@ public class TemplateGroupServiceImpl extends AbstractService { ...@@ -355,6 +355,7 @@ public class TemplateGroupServiceImpl extends AbstractService {
Row row = temp.getRow(j); Row row = temp.getRow(j);
for(int k = row.getFirstCellNum(); k < row.getLastCellNum(); k++){ for(int k = row.getFirstCellNum(); k < row.getLastCellNum(); k++){
Cell cell = row.getCell(k); Cell cell = row.getCell(k);
cell.setCellType(CellType.STRING);
if(!cell.getCellStyle().getLocked() && StringUtils.isNotBlank(cell.getStringCellValue()) if(!cell.getCellStyle().getLocked() && StringUtils.isNotBlank(cell.getStringCellValue())
&& cell.getStringCellValue().equalsIgnoreCase("${KeyIn}")){ && cell.getStringCellValue().equalsIgnoreCase("${KeyIn}")){
cell.setCellValue(""); cell.setCellValue("");
...@@ -533,6 +534,7 @@ public class TemplateGroupServiceImpl extends AbstractService { ...@@ -533,6 +534,7 @@ public class TemplateGroupServiceImpl extends AbstractService {
if (null == cell) { if (null == cell) {
return false; return false;
} }
cell.setCellType(CellType.STRING);
String v = cell.getStringCellValue(); String v = cell.getStringCellValue();
if (StringUtils.isBlank(v)) { if (StringUtils.isBlank(v)) {
return false; return false;
......
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