Resolve "Список периодических событий" #129
@ -37,6 +37,9 @@ public class Paper extends BaseEntity {
|
||||
@Column(name = "update_date")
|
||||
private Date updateDate;
|
||||
|
||||
@Column(name = "deadline_date")
|
||||
private Date deadlineDate;
|
||||
|
||||
private String comment;
|
||||
|
||||
private Boolean locked;
|
||||
@ -72,6 +75,14 @@ public class Paper extends BaseEntity {
|
||||
this.updateDate = updateDate;
|
||||
}
|
||||
|
||||
public Date getDeadlineDate() {
|
||||
return deadlineDate;
|
||||
}
|
||||
|
||||
public void setDeadlineDate(Date deadlineDate) {
|
||||
this.deadlineDate = deadlineDate;
|
||||
}
|
||||
|
||||
public String getComment() {
|
||||
return comment;
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ public class PaperDto {
|
||||
private final Paper.PaperStatus status;
|
||||
private final Date createDate;
|
||||
private final Date updateDate;
|
||||
private final Date deadlineDate;
|
||||
private final String comment;
|
||||
private final Boolean locked;
|
||||
private final String tmpFileName;
|
||||
@ -29,6 +30,7 @@ public class PaperDto {
|
||||
@JsonProperty("status") Paper.PaperStatus status,
|
||||
@JsonProperty("createDate") Date createDate,
|
||||
@JsonProperty("updateDate") Date updateDate,
|
||||
@JsonProperty("deadlineDate") Date deadlineDate,
|
||||
@JsonProperty("comment") String comment,
|
||||
@JsonProperty("locked") Boolean locked,
|
||||
@JsonProperty("tmpFileName") String tmpFileName,
|
||||
@ -38,6 +40,7 @@ public class PaperDto {
|
||||
this.status = status;
|
||||
this.createDate = createDate;
|
||||
this.updateDate = updateDate;
|
||||
this.deadlineDate = deadlineDate;
|
||||
this.comment = comment;
|
||||
this.locked = locked;
|
||||
this.tmpFileName = tmpFileName;
|
||||
@ -53,6 +56,7 @@ public class PaperDto {
|
||||
this.status = paper.getStatus();
|
||||
this.createDate = paper.getCreateDate();
|
||||
this.updateDate = paper.getUpdateDate();
|
||||
this.deadlineDate = paper.getDeadlineDate();
|
||||
this.comment = paper.getComment();
|
||||
this.locked = paper.getLocked();
|
||||
this.tmpFileName = null;
|
||||
@ -82,6 +86,8 @@ public class PaperDto {
|
||||
return updateDate;
|
||||
}
|
||||
|
||||
public Date getDeadlineDate() {return deadlineDate;}
|
||||
|
||||
public String getComment() {
|
||||
return comment;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user