utility-service http://jira.mfd.msk:8088/browse/CLS-339 Notification новые поля
This commit is contained in:
parent
5c69305e1f
commit
baa7492e99
2 changed files with 25 additions and 2 deletions
|
|
@ -81,8 +81,11 @@ public class NotificationService extends QueueConsumer implements InitializingBe
|
|||
notification.setObjectType(request.getObjectType());
|
||||
notification.setObjectId(request.getObjectId());
|
||||
notification.setNotificationStatus(PEND.getKey());
|
||||
notification.setCreated(Instant.now());
|
||||
notification.setUpdated(Instant.now());
|
||||
notification.setComment(request.getComment());
|
||||
notification.setPriority(request.getPriority());
|
||||
Instant now = Instant.now();
|
||||
notification.setCreated(now);
|
||||
notification.setUpdated(now);
|
||||
return notification;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,10 @@ public class NotificationNewRequest {
|
|||
public String objectType;
|
||||
@JsonProperty
|
||||
public Long objectId;
|
||||
@JsonProperty
|
||||
public String comment;
|
||||
@JsonProperty
|
||||
public String priority;
|
||||
|
||||
public Long getSenderId() {
|
||||
return senderId;
|
||||
|
|
@ -43,4 +47,20 @@ public class NotificationNewRequest {
|
|||
public void setObjectId(Long objectId) {
|
||||
this.objectId = objectId;
|
||||
}
|
||||
|
||||
public String getComment() {
|
||||
return comment;
|
||||
}
|
||||
|
||||
public void setComment(String comment) {
|
||||
this.comment = comment;
|
||||
}
|
||||
|
||||
public String getPriority() {
|
||||
return priority;
|
||||
}
|
||||
|
||||
public void setPriority(String priority) {
|
||||
this.priority = priority;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue