Commit 2412152c by wangweidong

土工平台修改

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