Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
Grievance
Commits
acb43ea0
Commit
acb43ea0
authored
1 year ago
by
shishir suman
Browse files
Options
Download
Patches
Plain Diff
bug fixes
parent
b89e97f4
UPHRH_quartz_scheduler
UAT
UPHRH_7903_mobile_otp
1 merge request
!49
Uphrh 7903 mobile otp
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/upsmf/grievance/service/impl/IntegrationServiceImpl.java
+2
-2
.../upsmf/grievance/service/impl/IntegrationServiceImpl.java
with
2 additions
and
2 deletions
+2
-2
src/main/java/org/upsmf/grievance/service/impl/IntegrationServiceImpl.java
+
2
−
2
View file @
acb43ea0
...
...
@@ -1073,13 +1073,13 @@ public class IntegrationServiceImpl implements IntegrationService {
ObjectMapper
mapper
=
new
ObjectMapper
();
Map
<
String
,
String
>
filter
=
mapper
.
convertValue
(
payload
.
get
(
"filter"
),
new
TypeReference
<
Map
<
String
,
String
>>(){});
List
<
User
>
userList
=
filterUserData
(
filter
,
email
);
JsonNode
userResponse
=
mapper
.
createObjectNode
();
if
(
userList
!=
null
)
{
for
(
User
user
:
userList
)
{
childNodes
.
add
(
createUserResponse
(
user
));
}
((
ObjectNode
)
userResponse
).
put
(
"count"
,
userList
.
size
());
}
JsonNode
userResponse
=
mapper
.
createObjectNode
();
((
ObjectNode
)
userResponse
).
put
(
"count"
,
users
.
getTotalElements
());
ArrayNode
nodes
=
mapper
.
valueToTree
(
childNodes
);
((
ObjectNode
)
userResponse
).
put
(
"result"
,
nodes
);
return
ResponseEntity
.
ok
(
mapper
.
writeValueAsString
(
userResponse
));
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets