| | |
| | | if (String.class == fieldType)
|
| | | {
|
| | | String s = Convert.toStr(val);
|
| | | if (StringUtils.endsWith(s, ".0"))
|
| | | if (s.matches("^\\d+\\.0$"))
|
| | | {
|
| | | val = StringUtils.substringBefore(s, ".0");
|
| | | }
|
| | |
| | | String separator = attr.separator();
|
| | | if (StringUtils.isNotEmpty(dateFormat) && StringUtils.isNotNull(value))
|
| | | {
|
| | | cell.getCellStyle().setDataFormat(this.wb.getCreationHelper().createDataFormat().getFormat(dateFormat));
|
| | | cell.setCellValue(parseDateToStr(dateFormat, value));
|
| | | }
|
| | | else if (StringUtils.isNotEmpty(readConverterExp) && StringUtils.isNotNull(value))
|