From 932777e9d6dc8dc5d9edbfc9117639ae02d96956 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 14 十月 2021 11:55:07 +0800 Subject: [PATCH] 自动化代码生成优化 --- src/test/java/com/generater/TestEntity.java | 22 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/test/java/com/generater/TestEntity.java b/src/test/java/com/generater/TestEntity.java index eda83a7..05fcef3 100644 --- a/src/test/java/com/generater/TestEntity.java +++ b/src/test/java/com/generater/TestEntity.java @@ -33,12 +33,12 @@ @DaoQueryCondition @Show(order = 1, title = "绫诲瀷") @Select(values = {"1:鐢�", "2:濂�"}, title = "绫诲瀷") - private int type; + private Integer type; @DaoQueryCondition @Show(order = 2, title = "鎬у埆") @RadioGroup(values = {"1:鐢�", "2:濂�"}, title = "鎬у埆") - private int sex; + private Integer sex; @Show(order = 3, title = "澶村儚", showType = Show.ShowType.IMG, imgWidth = 50, imgHeight = 50) @Img(height = 50, title = "澶村儚", uploadApi = "/admin/uploadimg", uploadApiParams = {"id:123123","type:2"}) @@ -51,6 +51,8 @@ @DaoQueryCondition private Date createTime; + + private Date updateTime; public String getId() { @@ -69,19 +71,19 @@ this.nickName = nickName; } - public int getType() { + public Integer getType() { return type; } - public void setType(int type) { + public void setType(Integer type) { this.type = type; } - public int getSex() { + public Integer getSex() { return sex; } - public void setSex(int sex) { + public void setSex(Integer sex) { this.sex = sex; } @@ -109,6 +111,14 @@ this.createTime = createTime; } + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + public class SearchForm { @Text(title = "寮�濮嬫棩鏈�", inputType = Text.Type.DATE) -- Gitblit v1.8.0