Browse Source

子表模板默认日期格式化

pull/117/MERGE
RuoYi 4 years ago
parent
commit
25a4b8c285
  1. 1
      ruoyi-generator/src/main/resources/vm/java/sub-domain.java.vm

1
ruoyi-generator/src/main/resources/vm/java/sub-domain.java.vm

@ -31,6 +31,7 @@ public class ${subClassName} extends BaseEntity
#if($parentheseIndex != -1)
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
#elseif($column.javaType == 'Date')
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd")
#else
@Excel(name = "${comment}")

Loading…
Cancel
Save