Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mytime
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Narendar Vakiti
mytime
Commits
30b4dbb9
Commit
30b4dbb9
authored
May 03, 2019
by
Vijay Akula
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolved account update issue
parent
de3e0a59
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
AccountController.java
...n/java/com/nisum/myteam/controller/AccountController.java
+2
-3
AccountService.java
...in/java/com/nisum/myteam/service/impl/AccountService.java
+3
-1
DomainService.java
...ain/java/com/nisum/myteam/service/impl/DomainService.java
+1
-0
No files found.
src/main/java/com/nisum/myteam/controller/AccountController.java
View file @
30b4dbb9
...
...
@@ -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
}
src/main/java/com/nisum/myteam/service/impl/AccountService.java
View file @
30b4dbb9
...
...
@@ -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
;
}
...
...
src/main/java/com/nisum/myteam/service/impl/DomainService.java
View file @
30b4dbb9
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment