Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

填充时日期格式丢失问题 #228

Open
721806280 opened this issue Feb 17, 2025 · 3 comments
Open

填充时日期格式丢失问题 #228

721806280 opened this issue Feb 17, 2025 · 3 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed planning It may be developed later

Comments

@721806280
Copy link

721806280 commented Feb 17, 2025

@Getter @Setter @EqualsAndHashCode public class FillData { private String name; private double number; private Date date; private LocalDate date2; }


`
@test
public void t01ReadAndWrite() throws Exception {
List list = ListUtils.newArrayList();
for (int i = 0; i < 10; i++) {
FillData fillData = new FillData();
list.add(fillData);
fillData.setName("张三");
fillData.setNumber(5.2);
fillData.setDate(new Date());
fillData.setDate2(LocalDate.now());
}

    EasyExcel.write().file(file07).head(FillData.class)
            .withTemplate(fileTemplate07).sheet().doFill(list);

}

`


annotation.xlsx

Image

@psxjoy 🐛 BUG. 请优先修复

@721806280
Copy link
Author

@psxjoy 参考 alibaba/easyexcel#3366

@721806280 721806280 changed the title 模版填充方式导出-日期格式不能正确应用的问题 填充时日期格式丢失问题 Feb 19, 2025
@psxjoy
Copy link
Member

psxjoy commented Feb 19, 2025

Hi, thanks for raising this issue. This is something we are already planning to address. To maintain compliance with open-source licensing, we are in the process of contacting the relevant PR authors. I am confident that this will be fixed in the upcoming version.

@psxjoy psxjoy added bug Something isn't working help wanted Extra attention is needed planning It may be developed later labels Feb 19, 2025
@senningsoft
Copy link

填充数据时能根据条件改变某行数据的样式吗?如改变字体的颜色

@psxjoy psxjoy pinned this issue Feb 25, 2025
@psxjoy psxjoy unpinned this issue Feb 25, 2025
@fast-excel fast-excel locked and limited conversation to collaborators Feb 25, 2025
@fast-excel fast-excel unlocked this conversation Feb 25, 2025
@psxjoy psxjoy added the good first issue Good for newcomers label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed planning It may be developed later
Projects
None yet
Development

No branches or pull requests

3 participants