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
e6d466f2
Commit
e6d466f2
authored
May 04, 2019
by
Vijay Akula
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating the project sequence while updating account
parent
0861416c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
ResourceController.java
.../java/com/nisum/myteam/controller/ResourceController.java
+1
-1
AccountService.java
...in/java/com/nisum/myteam/service/impl/AccountService.java
+2
-4
No files found.
src/main/java/com/nisum/myteam/controller/ResourceController.java
View file @
e6d466f2
...
...
@@ -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
Project
Id"
,
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
);
...
...
src/main/java/com/nisum/myteam/service/impl/AccountService.java
View file @
e6d466f2
...
...
@@ -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"
);
...
...
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