fix account field filling: processedSign
This commit is contained in:
parent
6e6d866445
commit
0a20044d1e
1 changed files with 1 additions and 2 deletions
|
|
@ -163,8 +163,7 @@ public class AccountService extends QueueConsumer implements InitializingBean {
|
||||||
account.setAccountType(req.getAccountType());
|
account.setAccountType(req.getAccountType());
|
||||||
account.setRelationId(relation.getId());
|
account.setRelationId(relation.getId());
|
||||||
account.setStatus(req.getStatus());
|
account.setStatus(req.getStatus());
|
||||||
// todo выяснить у репортера, что писать в это поле если это не первый счет компании
|
account.setProcessingSign(companies.isEmpty() ? Allowed.ALLOWED.getKey() : Allowed.DENIED.getKey());
|
||||||
account.setProcessingSign(companies.isEmpty() ? Allowed.ALLOWED.getKey() : null);
|
|
||||||
account.setCompanyId(relation.getConsumerId());
|
account.setCompanyId(relation.getConsumerId());
|
||||||
account.setCreated(now);
|
account.setCreated(now);
|
||||||
account.setUpdated(now);
|
account.setUpdated(now);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue