Commit d5d7143e authored by fangxinjiang's avatar fangxinjiang

代码生成器调整

parent 2c0c83ef
......@@ -52,16 +52,16 @@ 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)
#if($column.nullable)
@NotBlank(message = "$column.comments 不能为空")
#end
#if($column.maxLength && $column.attrType =='String')
@Length(max=$column.maxLength,message = "$column.comments 不能超过$column.maxLength 个字符")
#end
#end
#end
#if($column.nullable)
@NotBlank(message = "$column.comments 不能为空")
#end
#if($column.maxLength && $column.attrType =='String')
@Length(max=$column.maxLength,message = "$column.comments 不能超过$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)
@Schema(description ="$column.comments"#if($column.hidden),hidden=$column.hidden#end)
@ExcelProperty("$column.comments")
#if($column.attrType =='LocalDate' || $column.attrType =='LocalDateTime' || $column.attrType =='Date')
private Date $column.lowerAttrName;
......
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