mirror of
https://github.com/yangzongzhuan/RuoYi-Vue.git
synced 2025-09-03 03:15:33 +00:00
优化导出Excel日期格式双击离开后与设定的格式不一致问题
This commit is contained in:
@@ -1148,6 +1148,7 @@ public class ExcelUtil<T>
|
||||
String dictType = attr.dictType();
|
||||
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))
|
||||
|
Reference in New Issue
Block a user