kt286 commented on issue #714:
URL: https://github.com/apache/fesod/issues/714#issuecomment-3587683509

   Thanks, after upgrading to Mybatis 3.5.19 it indeed works normally, but I 
think some additional handling might be necessary. Although this time it was 
Mybatis's issue, after all, java.sql.Date inherits from java.util.Date. In 
other scenarios, it's still possible to directly pass a java.util.Date object.
   
   The minimal reproducible demo is as follows:
   
   ```java
   package org.example;
   
   import cn.idev.excel.FastExcel;
   import lombok.Data;
   
   import java.util.ArrayList;
   import java.util.List;
   
   
   //TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
   // click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
   public class Main {
       public static void main(String[] args) {
           List<Test> list = new ArrayList<>();
   
           Test test1 = new Test();
           test1.setNumber(1);
           test1.setDate(java.sql.Date.valueOf("2025-10-12"));
   
           list.add(test1);
   
           FastExcel.write("C:\\Workspace\\text.xlsx").sheet().doWrite(list);
       }
   
       @Data
       public static class Test {
           private int number;
           private java.util.Date date;
       }
   }
   
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to