Commit 36dfd840 authored by chase's avatar chase

fix bug

parent 6c141721
...@@ -934,7 +934,7 @@ public class ReportServiceImpl extends BaseService { ...@@ -934,7 +934,7 @@ public class ReportServiceImpl extends BaseService {
sumStr += cellNum + ","; sumStr += cellNum + ",";
} }
sumStr += "\")"; sumStr += "\")";
sumStr = sumStr.replace(",\")", "\")"); // sumStr = sumStr.replace(",\")", "\")");
sumRow.getCell(entry.getKey()).setCellValue(sumStr); sumRow.getCell(entry.getKey()).setCellValue(sumStr);
} }
......
package pwc.taxtech.atms.vat.service.impl.report.functions; package pwc.taxtech.atms.vat.service.impl.report.functions;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.ss.formula.OperationEvaluationContext; import org.apache.poi.ss.formula.OperationEvaluationContext;
import org.apache.poi.ss.formula.eval.NumberEval; import org.apache.poi.ss.formula.eval.NumberEval;
import org.apache.poi.ss.formula.eval.StringEval; import org.apache.poi.ss.formula.eval.StringEval;
...@@ -156,8 +157,11 @@ public class PSUM extends FunctionBase implements FreeRefFunction { ...@@ -156,8 +157,11 @@ public class PSUM extends FunctionBase implements FreeRefFunction {
String[] list = listStr.split(","); String[] list = listStr.split(",");
List<PCell> pCells = new ArrayList<>(list.length); List<PCell> pCells = new ArrayList<>(list.length);
for (String s : list) { for (String s : list) {
if(StringUtils.isNotBlank(s)){
pCells.add(getColumnIndex(s)); pCells.add(getColumnIndex(s));
} }
}
return pCells; return pCells;
} }
......
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