Skip to content

货币、百分比等格式无法动态设置 #4073

@keepcoming

Description

@keepcoming

触发场景描述

导出时有很多字段需要动态设置不同列的单元格格式,无法使用@DateTimeFormat("yyyy年MM月dd日")、@numberformat("#.##%")、@numberformat("¥#.##")等注解,导出后单元格格式没有变化
image

结果

image

提示的异常或者没有达到的效果

不会出现异常,但效果无法达到,使用文本写入时,excel会出现空格或格式异常提示,如下图
image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions