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.setObjectType(request.getObjectType());
|
||||||
notification.setObjectId(request.getObjectId());
|
notification.setObjectId(request.getObjectId());
|
||||||
notification.setNotificationStatus(PEND.getKey());
|
notification.setNotificationStatus(PEND.getKey());
|
||||||
notification.setCreated(Instant.now());
|
notification.setComment(request.getComment());
|
||||||
notification.setUpdated(Instant.now());
|
notification.setPriority(request.getPriority());
|
||||||
|
Instant now = Instant.now();
|
||||||
|
notification.setCreated(now);
|
||||||
|
notification.setUpdated(now);
|
||||||
return notification;
|
return notification;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,10 @@ public class NotificationNewRequest {
|
||||||
public String objectType;
|
public String objectType;
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
public Long objectId;
|
public Long objectId;
|
||||||
|
@JsonProperty
|
||||||
|
public String comment;
|
||||||
|
@JsonProperty
|
||||||
|
public String priority;
|
||||||
|
|
||||||
public Long getSenderId() {
|
public Long getSenderId() {
|
||||||
return senderId;
|
return senderId;
|
||||||
|
|
@ -43,4 +47,20 @@ public class NotificationNewRequest {
|
||||||
public void setObjectId(Long objectId) {
|
public void setObjectId(Long objectId) {
|
||||||
this.objectId = 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