$!{column.obj.dataType.length}
#foreach($column in $tableInfo.fullColumn)
#if(${column.comment})/**
* ${column.comment}
*/
@ApiModelProperty(value = "${column.comment}")
#if($!{tool.getClsNameByFullName($column.type)} == "Date")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateUtil.DATE_TIME, timezone = "GMT+8")
@DateTimeFormat(pattern = DateUtil.DATE_TIME)
#elseif($!{tool.getClsNameByFullName($column.type)} == "String")
@Trimmed
@Length(max = $!{column.obj.dataType.length}, message = "${column.comment}不能超过$!{column.obj.dataType.length}个字符", groups = {AddGroup.class, UpdateGroup.class})
#else
@Trimmed
#end
#end
private $!{tool.getClsNameByFullName($column.type)} $!{column.name};
#end
Wiki - Gitee.com