Commit b778c6a5 authored by fangxinjiang's avatar fangxinjiang

代码生成器调整

parent d5d7143e
......@@ -53,12 +53,12 @@ public class ${className} extends BaseEntity {
#if($column.columnName == $pk.columnName)
@TableId(type = IdType.ASSIGN_ID)
#else
@ExcelAttribute(name = "$column.comments"#if($column.nullable), isNotEmpty = true,errorInfo = "$column.comments 不能为空" #end #if($column.attrType =='LocalDate' || $column.attrType =='LocalDateTime') ,isDate = true #end #if($column.maxLength), maxLength = $column.maxLength #end)
@ExcelAttribute(name = "$column.comments"#if($column.nullable), isNotEmpty = true,errorInfo = "$column.comments不能为空" #end #if($column.attrType =='LocalDate' || $column.attrType =='LocalDateTime') ,isDate = true #end #if($column.maxLength), maxLength = $column.maxLength #end)
#if($column.nullable)
@NotBlank(message = "$column.comments 不能为空")
@NotBlank(message = "$column.comments不能为空")
#end
#if($column.maxLength && $column.attrType =='String')
@Length(max=$column.maxLength,message = "$column.comments 不能超过$column.maxLength 个字符")
@Length(max=$column.maxLength,message = "$column.comments不能超过$column.maxLength个字符")
#end
#end
#end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment