Commit 2412152c by wangweidong

土工平台修改

parent 76d40b8d
...@@ -613,27 +613,27 @@ public class SoilExperimentServiceImpl extends BaseServiceImpl<SoilExperimentMap ...@@ -613,27 +613,27 @@ public class SoilExperimentServiceImpl extends BaseServiceImpl<SoilExperimentMap
// xssfSheet.setForceFormulaRecalculation(true); // xssfSheet.setForceFormulaRecalculation(true);
for (SoilOriginalTemplateConfig config:configList) { // for (SoilOriginalTemplateConfig config:configList) {
if(StringUtils.isBlank(config.getFormula())){ // if(StringUtils.isBlank(config.getFormula())){
continue; // continue;
} // }
if (null == config.getMergeRowNum()){ // if (null == config.getMergeRowNum()){
continue; // continue;
} // }
if (null == config.getColumnPlace()){ // if (null == config.getColumnPlace()){
continue; // continue;
} // }
//
XSSFRow xssfRow = xssfSheet.getRow(config.getMergeRowNum()); // XSSFRow xssfRow = xssfSheet.getRow(config.getMergeRowNum());
if (null == xssfRow){ // if (null == xssfRow){
continue; // continue;
} // }
XSSFCell cell = xssfRow.getCell(config.getColumnPlace()); // XSSFCell cell = xssfRow.getCell(config.getColumnPlace());
if (null == cell){ // if (null == cell){
continue; // continue;
} // }
cell.setCellFormula(config.getFormula()); // cell.setCellFormula(config.getFormula());
} // }
int index = 0; int index = 0;
......
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