company-service RelationService ...

This commit is contained in:
AKurakin 2023-05-30 18:50:11 +03:00
parent 0ce767d78f
commit e2fc49c968

View file

@ -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);