|
|
@ -47,6 +47,11 @@ public class Project { |
|
|
|
@TableField(exist = false) |
|
|
|
@TableField(exist = false) |
|
|
|
private String userName; |
|
|
|
private String userName; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* project code |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
private Long code; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* project name |
|
|
|
* project name |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -85,6 +90,14 @@ public class Project { |
|
|
|
@TableField(exist = false) |
|
|
|
@TableField(exist = false) |
|
|
|
private int instRunningCount; |
|
|
|
private int instRunningCount; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Long getCode() { |
|
|
|
|
|
|
|
return code; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setCode(Long code) { |
|
|
|
|
|
|
|
this.code = code; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public int getDefCount() { |
|
|
|
public int getDefCount() { |
|
|
|
return defCount; |
|
|
|
return defCount; |
|
|
|
} |
|
|
|
} |
|
|
@ -167,15 +180,19 @@ public class Project { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public String toString() { |
|
|
|
public String toString() { |
|
|
|
return "Project{" + |
|
|
|
return "Project{" |
|
|
|
"id=" + id + |
|
|
|
+ "id=" + id |
|
|
|
", userId=" + userId + |
|
|
|
+ ", userId=" + userId |
|
|
|
", userName='" + userName + '\'' + |
|
|
|
+ ", userName='" + userName + '\'' |
|
|
|
", name='" + name + '\'' + |
|
|
|
+ ", code=" + code |
|
|
|
", description='" + description + '\'' + |
|
|
|
+ ", name='" + name + '\'' |
|
|
|
", createTime=" + createTime + |
|
|
|
+ ", description='" + description + '\'' |
|
|
|
", updateTime=" + updateTime + |
|
|
|
+ ", createTime=" + createTime |
|
|
|
'}'; |
|
|
|
+ ", updateTime=" + updateTime |
|
|
|
|
|
|
|
+ ", perm=" + perm |
|
|
|
|
|
|
|
+ ", defCount=" + defCount |
|
|
|
|
|
|
|
+ ", instRunningCount=" + instRunningCount |
|
|
|
|
|
|
|
+ '}'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -211,6 +228,7 @@ public class Project { |
|
|
|
private int id; |
|
|
|
private int id; |
|
|
|
private int userId; |
|
|
|
private int userId; |
|
|
|
private String userName; |
|
|
|
private String userName; |
|
|
|
|
|
|
|
private Long code; |
|
|
|
private String name; |
|
|
|
private String name; |
|
|
|
private String description; |
|
|
|
private String description; |
|
|
|
private Date createTime; |
|
|
|
private Date createTime; |
|
|
@ -222,6 +240,11 @@ public class Project { |
|
|
|
private Builder() { |
|
|
|
private Builder() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Builder code(Long code) { |
|
|
|
|
|
|
|
this.code = code; |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Builder id(int id) { |
|
|
|
public Builder id(int id) { |
|
|
|
this.id = id; |
|
|
|
this.id = id; |
|
|
|
return this; |
|
|
|
return this; |
|
|
@ -276,6 +299,7 @@ public class Project { |
|
|
|
Project project = new Project(); |
|
|
|
Project project = new Project(); |
|
|
|
project.setId(id); |
|
|
|
project.setId(id); |
|
|
|
project.setUserId(userId); |
|
|
|
project.setUserId(userId); |
|
|
|
|
|
|
|
project.setCode(code); |
|
|
|
project.setUserName(userName); |
|
|
|
project.setUserName(userName); |
|
|
|
project.setName(name); |
|
|
|
project.setName(name); |
|
|
|
project.setDescription(description); |
|
|
|
project.setDescription(description); |
|
|
|