소스 검색

fixbug----setCellType

Raod 3 년 전
부모
커밋
29dbd7dc6c
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      report-core/src/main/java/com/anjiplus/template/gaea/business/modules/reportexcel/util/XlsSheetUtil.java

+ 4 - 4
report-core/src/main/java/com/anjiplus/template/gaea/business/modules/reportexcel/util/XlsSheetUtil.java

@@ -653,7 +653,7 @@ public class XlsSheetUtil {
                         } else {
                             style.setDataFormat((short) 0);
                         }
-                        cell.setCellType(CellType.STRING);
+                        cell.setCellType(org.apache.poi.ss.usermodel.CellType.STRING);
                         break;
                     }
                     case "d": {
@@ -692,7 +692,7 @@ public class XlsSheetUtil {
                     }
                     case "b": {
                         //逻辑
-                        cell.setCellType(CellType.BOOLEAN);
+                        cell.setCellType(org.apache.poi.ss.usermodel.CellType.BOOLEAN);
                         if (_i >= 0) {
                             style.setDataFormat(_i.shortValue());
                         } else {
@@ -705,7 +705,7 @@ public class XlsSheetUtil {
                         //数值
 //                        cell.setCellType(CellType.NUMERIC);
                         //数字转字符串
-                        cell.setCellType(CellType.STRING);
+                        cell.setCellType(org.apache.poi.ss.usermodel.CellType.STRING);
                         if (_i >= 0) {
                             style.setDataFormat(_i.shortValue());
                         } else {
@@ -728,7 +728,7 @@ public class XlsSheetUtil {
                     }
                     case "e": {
                         //错误
-                        cell.setCellType(CellType.ERROR);
+                        cell.setCellType(org.apache.poi.ss.usermodel.CellType.ERROR);
                         if (_i >= 0) {
                             style.setDataFormat(_i.shortValue());
                         } else {