!470 fix: 代码生成:解决Java代码DO和VO中的警告
parent
787d7600be
commit
e0e814f38a
|
@ -1,5 +1,5 @@
|
||||||
## 提供给 baseVO、createVO、updateVO 生成字段
|
## 提供给 baseVO、createVO、updateVO 生成字段
|
||||||
@Schema(description = "${column.columnComment}"#if (!${column.nullable}), required = true#end#if ("$!column.example" != ""), example = "${column.example}"#end)
|
@Schema(description = "${column.columnComment}"#if (!${column.nullable}), requiredMode = Schema.RequiredMode.REQUIRED#end#if ("$!column.example" != ""), example = "${column.example}"#end)
|
||||||
#if (!${column.nullable})## 判断 @NotEmpty 和 @NotNull 注解
|
#if (!${column.nullable})## 判断 @NotEmpty 和 @NotNull 注解
|
||||||
#if (${field.fieldType} == 'String')
|
#if (${field.fieldType} == 'String')
|
||||||
@NotEmpty(message = "${column.columnComment}不能为空")
|
@NotEmpty(message = "${column.columnComment}不能为空")
|
||||||
|
|
Loading…
Reference in New Issue