Commit e6d466f2 authored by Vijay Akula's avatar Vijay Akula

updating the project sequence while updating account

parent 0861416c
......@@ -191,7 +191,7 @@ public class ResourceController {
"List of Resources for a project", resourcesList, request.getRequestURI(), "Resource details", null);
}
ResponseDetails responseDetails = new ResponseDetails(new Date(), 602, "Please provide ProjectId",
ResponseDetails responseDetails = new ResponseDetails(new Date(), 602, "Please provide Valid Delivery Lead Id",
"List of Resources for DeliveryLead", null, request.getRequestURI(), "Resource details", null);
return new ResponseEntity<ResponseDetails>(responseDetails, HttpStatus.OK);
......
......@@ -42,10 +42,7 @@ public class AccountService implements IAccountService {
accountReq.setAccountId(generateAccountId());
accountReq.setStatus(MyTeamUtils.STRING_Y);
if (accountReq.getAccountProjectSequence() == null) {
accountReq.setAccountProjectSequence(0);
}
accountReq.setAccountProjectSequence(new Integer(0));
Account accountPersisted = accountRepo.save(accountReq);
if (log.isInfoEnabled()) {
......@@ -70,6 +67,7 @@ public class AccountService implements IAccountService {
Account accountBeforeUpdate = accountRepo.findByAccountId(accountUpdating.getAccountId());
accountUpdating.setId(accountBeforeUpdate.getId());
accountUpdating.setStatus(accountBeforeUpdate.getStatus());
accountUpdating.setAccountProjectSequence(accountBeforeUpdate.getAccountProjectSequence());
accountUpdating.setAccountName(accountUpdating.getAccountName().trim());
log.info("Updating the roleids of DeliveryManagers in RoleMapping Collection");
......
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