company-service RelationService ...
This commit is contained in:
parent
0ce767d78f
commit
e2fc49c968
1 changed files with 2 additions and 2 deletions
|
|
@ -222,7 +222,7 @@ public class RelationService extends QueueConsumer implements InitializingBean {
|
|||
|
||||
|
||||
Relation relation = relationMap.getSingleObjectByID(req.getId());
|
||||
relation.setUpdated(relation.getCreated());
|
||||
relation.setUpdated(Instant.now());
|
||||
|
||||
if (req.getServiceStatus() != null) {
|
||||
log.debug("To relation {} set serivceStatus=\"{}\" by user request.", relation.getId(), req.getServiceStatus());
|
||||
|
|
@ -270,7 +270,7 @@ public class RelationService extends QueueConsumer implements InitializingBean {
|
|||
if (WorkflowStatus.Blocked.equalsByKey(relation.getServiceStatus())) {
|
||||
log.warn("Relation {} already blocked.", relation.getId());
|
||||
} else {
|
||||
relation.setUpdated(relation.getCreated());
|
||||
relation.setUpdated(Instant.now());
|
||||
relation.setServiceStatus(WorkflowStatus.Blocked.getKey());
|
||||
|
||||
relationMap.insert(relation);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue