|
|
|
@ -401,13 +401,14 @@ public class ModulexServiceImpl extends ServiceImpl<ModulexMapper, Modulex> impl |
|
|
|
|
Cell cell = row.getCell(k); |
|
|
|
|
if(cell==null){ |
|
|
|
|
propertyNames.add(null); |
|
|
|
|
}else { |
|
|
|
|
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator(); |
|
|
|
|
DataFormatter formatter = new DataFormatter(); |
|
|
|
|
//单元格不设置数字格式
|
|
|
|
|
cell.setCellStyle(null); |
|
|
|
|
String name = formatter.formatCellValue(cell,evaluator); |
|
|
|
|
propertyNames.add(name); |
|
|
|
|
} |
|
|
|
|
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator(); |
|
|
|
|
DataFormatter formatter = new DataFormatter(); |
|
|
|
|
//单元格不设置数字格式
|
|
|
|
|
cell.setCellStyle(null); |
|
|
|
|
String name = formatter.formatCellValue(cell,evaluator); |
|
|
|
|
propertyNames.add(name); |
|
|
|
|
} |
|
|
|
|
if(propertyNames.size()!=18 || !propertyNames.get(0).equals("上级模块名称") |
|
|
|
|
|| !propertyNames.get(1).equals("项目名称") |
|
|
|
@ -442,7 +443,11 @@ public class ModulexServiceImpl extends ServiceImpl<ModulexMapper, Modulex> impl |
|
|
|
|
Cell cell = row.getCell(k); |
|
|
|
|
String value=""; |
|
|
|
|
if(cell!=null){ |
|
|
|
|
value = cell.getStringCellValue(); |
|
|
|
|
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator(); |
|
|
|
|
DataFormatter formatter = new DataFormatter(); |
|
|
|
|
//单元格不设置数字格式
|
|
|
|
|
cell.setCellStyle(null); |
|
|
|
|
value = formatter.formatCellValue(cell,evaluator); |
|
|
|
|
} |
|
|
|
|
switch (k){ |
|
|
|
|
case 0: |
|
|
|
@ -504,7 +509,7 @@ public class ModulexServiceImpl extends ServiceImpl<ModulexMapper, Modulex> impl |
|
|
|
|
modulexVo.setVerisonStatus(value); |
|
|
|
|
break; |
|
|
|
|
case 17: |
|
|
|
|
modulexVo.setVerison(value); |
|
|
|
|
modulexVo.setVerison(value); |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
message.put("isError", "true"); |
|
|
|
|