admin
2021-10-14 932777e9d6dc8dc5d9edbfc9117639ae02d96956
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)