-
Notifications
You must be signed in to change notification settings - Fork 461
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Search before asking
- I searched in the issues and found nothing similar.
Fesod version
1.3.0
JDK version
17
Operating system
No response
Steps To Reproduce
Mybatis 3.5.17 之后的版本,date类型的数据返回的是 java.sql.Date 而不是 java.util.Date,此时在 WriteCellData 方法中调用 dateValue.toInstant() 会报错
/**
* Constructor for creating a WriteCellData object with a Date value.
*
* @param dateValue The Date value to be written to the cell.
* @throws IllegalArgumentException If the date value is null.
*/
public WriteCellData(Date dateValue) {
super();
if (dateValue == null) {
throw new IllegalArgumentException("DateValue can not be null");
}
setType(CellDataTypeEnum.DATE);
this.dateValue = LocalDateTime.ofInstant(dateValue.toInstant(), ZoneId.systemDefault());
}
Current Behavior
throw new java.lang.UnsupportedOperationException();
Expected Behavior
正常
Anything else?
No response
Are you willing to submit a PR?
- I'm willing to submit a PR!
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request