|
@@ -831,12 +831,11 @@ public class TDailyProductionReportServiceImpl implements ITDailyProductionRepor
|
|
|
// 根据列下表,获取单元格对象,如果单元格的值为空,则返回null
|
|
|
Cell cell = row.getCell(cellIndex, Row.MissingCellPolicy.RETURN_BLANK_AS_NULL);
|
|
|
if (cell != null) {
|
|
|
- // 设置单元格格式
|
|
|
- // cell.setCellType(CellType.STRING);
|
|
|
- // 获取单元格数据
|
|
|
+ cell.setCellType(CellType.STRING);
|
|
|
String cellValue = cell.getStringCellValue();
|
|
|
- // 处理数据格式
|
|
|
-// cellData = this.format(cellValue, type);
|
|
|
+ if ("false".equalsIgnoreCase(cellValue)) {
|
|
|
+ cellValue = "0";
|
|
|
+ }
|
|
|
cellData = cellValue;
|
|
|
}
|
|
|
return cellData;
|