| | |
| | | import java.math.BigDecimal; |
| | | import java.math.RoundingMode; |
| | | import java.net.URL; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.text.NumberFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | |
| | | } |
| | | // String类型 |
| | | if (cell.getCellTypeEnum() == CellType.STRING) { |
| | | String val = cell.getStringCellValue(); |
| | | if (val == null || val.trim().length() == 0) { |
| | | String val = new String(cell.getStringCellValue().getBytes(StandardCharsets.UTF_8)); |
| | | if (val.trim().length() == 0) { |
| | | return ""; |
| | | } |
| | | return val.trim(); |