Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
15f24ad82b
1 changed files with 3 additions and 2 deletions
|
|
@ -167,13 +167,14 @@ public class KSRepLccTradesReportBuilder extends CSVReportBuilder<EmptyParams, K
|
||||||
if (account != null) {
|
if (account != null) {
|
||||||
AccountType accountType = IEnumKey.getEnumByKey(AccountType.class, account.getAccountType());
|
AccountType accountType = IEnumKey.getEnumByKey(AccountType.class, account.getAccountType());
|
||||||
if (accountType == AccountType.Info) {
|
if (accountType == AccountType.Info) {
|
||||||
|
String currency = account.getCurrency();
|
||||||
pb = accountImdg.predicateBuilder();
|
pb = accountImdg.predicateBuilder();
|
||||||
ImdgPredicate finalPredicate = pb.and(
|
ImdgPredicate finalPredicate = pb.and(
|
||||||
pb.equals("accountType", AccountType.Anlt.getKey()),
|
pb.equals("accountType", AccountType.Anlt.getKey()),
|
||||||
pb.equals("companyId", 5L)
|
pb.equals("companyId", 5L)
|
||||||
);
|
);
|
||||||
if (execution.getSecuritySymbol() != null)
|
if (currency != null)
|
||||||
finalPredicate = pb.and(finalPredicate, pb.equals("currency", execution.getSecuritySymbol()));
|
finalPredicate = pb.and(finalPredicate, pb.equals("currency", currency));
|
||||||
account = accountImdg.getFirstObjectByPredicate(finalPredicate);
|
account = accountImdg.getFirstObjectByPredicate(finalPredicate);
|
||||||
}
|
}
|
||||||
if (account != null) {
|
if (account != null) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue