mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 23:31:52 +08:00
fix: 代码生成:解决Java代码DO和VO中的警告。
This commit is contained in:
parent
711a2763ed
commit
7c47fd47c1
@ -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}不能为空")
|
||||||
|
@ -24,9 +24,9 @@ import static ${DateUtilsClassName}.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
|||||||
#end
|
#end
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ${table.classComment} Base VO,提供给添加、修改、详细的子 VO 使用
|
* ${table.classComment} Base VO,提供给添加、修改、详细的子 VO 使用
|
||||||
* 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成
|
* 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class ${sceneEnum.prefixClass}${table.className}BaseVO {
|
public class ${sceneEnum.prefixClass}${table.className}BaseVO {
|
||||||
|
|
||||||
|
@ -26,6 +26,8 @@ import static ${DateUtilsClassName}.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
|||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
public class ${sceneEnum.prefixClass}${table.className}PageReqVO extends PageParam {
|
public class ${sceneEnum.prefixClass}${table.className}PageReqVO extends PageParam {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
#foreach ($column in $columns)
|
#foreach ($column in $columns)
|
||||||
#if (${column.listOperation})##查询操作
|
#if (${column.listOperation})##查询操作
|
||||||
#if (${column.listOperationCondition} == "BETWEEN")## 情况一,Between 的时候
|
#if (${column.listOperationCondition} == "BETWEEN")## 情况一,Between 的时候
|
||||||
|
@ -28,6 +28,8 @@ import ${BaseDOClassName};
|
|||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public class ${table.className}DO extends BaseDO {
|
public class ${table.className}DO extends BaseDO {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
#foreach ($column in $columns)
|
#foreach ($column in $columns)
|
||||||
#if (!${baseDOFields.contains(${column.javaField})})##排除 BaseDO 的字段
|
#if (!${baseDOFields.contains(${column.javaField})})##排除 BaseDO 的字段
|
||||||
/**
|
/**
|
||||||
|
@ -61,10 +61,10 @@ import static org.mockito.Mockito.*;
|
|||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
/**
|
/**
|
||||||
* {@link ${table.className}ServiceImpl} 的单元测试类
|
* {@link ${table.className}ServiceImpl} 的单元测试类
|
||||||
*
|
*
|
||||||
* @author ${table.author}
|
* @author ${table.author}
|
||||||
*/
|
*/
|
||||||
@Import(${table.className}ServiceImpl.class)
|
@Import(${table.className}ServiceImpl.class)
|
||||||
public class ${table.className}ServiceImplTest extends BaseDbUnitTest {
|
public class ${table.className}ServiceImplTest extends BaseDbUnitTest {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user