Commit 30b4dbb9 authored by Vijay Akula's avatar Vijay Akula

Resolved account update issue

parent de3e0a59
......@@ -82,8 +82,6 @@ public class AccountController {
}
@RequestMapping(value = "/accounts", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<?> getAccounts(HttpServletRequest request) throws MyTeamException {
List<Map<Object, Object>> accountsList = accountService.getAccountsList();
......@@ -155,4 +153,5 @@ public class AccountController {
}
}
\ No newline at end of file
}
......@@ -63,6 +63,7 @@ public class AccountService implements IAccountService {
public Account updateAccount(Account accountUpdating) throws MyTeamException {
Account accountBeforeUpdate = accountRepo.findByAccountId(accountUpdating.getAccountId());
accountUpdating.setId(accountBeforeUpdate.getId());
accountUpdating.setStatus(accountBeforeUpdate.getStatus());
accountUpdating.setAccountName(accountUpdating.getAccountName().trim());
......@@ -73,9 +74,10 @@ public class AccountService implements IAccountService {
log.info("Deleting the roleids of DeliveryManagers in RoleMapping Collection");
deleteRoleIdsForDeliveryManager(accountUpdating, roleId);
log.info("account updating::"+accountUpdating);
Account accountUpdated = accountRepo.save(accountUpdating);
log.info("Account updated::" + accountUpdated);
log.info("Account updated::" + accountUpdated);
return accountUpdated;
}
......
......@@ -95,6 +95,7 @@ public class DomainService implements IDomainService {
log.info("updating the domain details");
domainReq.setStatus(MyTeamUtils.ACTIVE);
Domain domainPersisted = domainRepo.save(domainReq);
log.info("After update the domain details::" + domainPersisted);
return domainPersisted;
......
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