优化导出数据LocalDateTime类型无数据问题
This commit is contained in:
		
							parent
							
								
									99932d91c0
								
							
						
					
					
						commit
						0b08933a8c
					
				| @ -284,7 +284,7 @@ public class ExcelUtil<T> | |||||||
|                             String dateFormat = field.getAnnotation(Excel.class).dateFormat(); |                             String dateFormat = field.getAnnotation(Excel.class).dateFormat(); | ||||||
|                             if (StringUtils.isNotEmpty(dateFormat)) |                             if (StringUtils.isNotEmpty(dateFormat)) | ||||||
|                             { |                             { | ||||||
|                                 val = parseDateToStr(dateFormat, (Date) val); |                                 val = parseDateToStr(dateFormat, val); | ||||||
|                             } |                             } | ||||||
|                             else |                             else | ||||||
|                             { |                             { | ||||||
| @ -703,7 +703,7 @@ public class ExcelUtil<T> | |||||||
|                 String separator = attr.separator(); |                 String separator = attr.separator(); | ||||||
|                 if (StringUtils.isNotEmpty(dateFormat) && StringUtils.isNotNull(value)) |                 if (StringUtils.isNotEmpty(dateFormat) && StringUtils.isNotNull(value)) | ||||||
|                 { |                 { | ||||||
|                     cell.setCellValue(parseDateToStr(dateFormat, (Date) value)); |                     cell.setCellValue(parseDateToStr(dateFormat, value)); | ||||||
|                 } |                 } | ||||||
|                 else if (StringUtils.isNotEmpty(readConverterExp) && StringUtils.isNotNull(value)) |                 else if (StringUtils.isNotEmpty(readConverterExp) && StringUtils.isNotNull(value)) | ||||||
|                 { |                 { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 RuoYi
						RuoYi