Commit a2910673 authored by Vijay Akula's avatar Vijay Akula

Added new api in accountcontroller for fetching accounts based on accountId

parent 5ca5306f
......@@ -103,11 +103,12 @@ public class AccountService implements IAccountService {
@Override
public Account getAccountById(String accountId) {
Account account = null;
log.info("AccountService::accountid:"+accountId);
Account account=null;
if (accountId != null && !"".equalsIgnoreCase(accountId)) {
return accountRepo.findByAccountId(accountId);
account = accountRepo.findByAccountId(accountId);
log.info("AccountService::The account details are::"+account);
}
return account;
}
......
package com.nisum.myteam.utils.constants;
public enum RoleEnum {
DIRECTOR("Director"), DELIVERY_LEAD("Delivery Lead"), DELIVERY_MANAGER("Delivery Manager"),LEAD("Lead");
private String role;
private RoleEnum(String role) {
this.role = role;
}
public String getRole() {
return this.role;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment