securities-service .

This commit is contained in:
AKurakin 2023-05-24 18:02:39 +03:00
parent f13fba18fd
commit 4aa53c223b

View file

@ -171,6 +171,7 @@ public class MoneyMarketSecurityService extends QueueConsumer implements Initial
.setMessage(errorMsg); .setMessage(errorMsg);
} }
MoneyMarketSecurity mms = validator.getStored(Stored.PresentById); MoneyMarketSecurity mms = validator.getStored(Stored.PresentById);
if (mms == null) log.error("Validator return null stored mms object.");
Instant updateTime = Instant.now(); Instant updateTime = Instant.now();
mms.setUpdated(updateTime); mms.setUpdated(updateTime);
mms.setStartDate(req.getStartDate()); mms.setStartDate(req.getStartDate());
@ -222,6 +223,7 @@ public class MoneyMarketSecurityService extends QueueConsumer implements Initial
} }
Instant updateTime = Instant.now(); Instant updateTime = Instant.now();
MoneyMarketSecurity mms = validator.getStored(Stored.PresentById); MoneyMarketSecurity mms = validator.getStored(Stored.PresentById);
if (mms == null) log.error("Validator return null stored mms object.");
mms.setWorkflowStatus(ru.spcex.platform.enumeration.Status.Blocked.getKey()); mms.setWorkflowStatus(ru.spcex.platform.enumeration.Status.Blocked.getKey());
mms.setUpdated(updateTime); mms.setUpdated(updateTime);
moneyMarketSecurityMap.update(mms); moneyMarketSecurityMap.update(mms);