Explorar el Código

子表模板默认日期格式化

RuoYi hace 4 años
padre
commit
25a4b8c285
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      ruoyi-generator/src/main/resources/vm/java/sub-domain.java.vm

+ 1 - 0
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}")