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
cbab71f5
Commit
cbab71f5
authored
1 year ago
by
shishir suman
Browse files
Options
Download
Patches
Plain Diff
updating ticket assignment matrix logic
parent
714aada6
UPHRH_7903_mobile_otp
UAT
1 merge request
!61
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/DashboardServiceImpl.java
+6
-3
...rg/upsmf/grievance/service/impl/DashboardServiceImpl.java
with
6 additions
and
3 deletions
+6
-3
src/main/java/org/upsmf/grievance/service/impl/DashboardServiceImpl.java
+
6
−
3
View file @
cbab71f5
...
...
@@ -286,7 +286,7 @@ public class DashboardServiceImpl implements DashboardService {
// get total ticket count for provided filter and date range
long
totalTicketCount
=
getTotalTicketsCount
(
filter
,
date
);
// get total escalated ticket count
long
totalEscalatedTicketCount
=
getEscalatedTicketsCount
(
filter
,
date
,
true
);
long
totalEscalatedTicketCount
=
getEscalatedTicketsCount
(
filter
,
date
,
true
,
null
);
// get total ticket nudged
long
totalNudgedTicketCount
=
getNudgedTicketsCount
(
filter
,
date
);
// get total ticket open greater than 21 days
...
...
@@ -320,8 +320,11 @@ public class DashboardServiceImpl implements DashboardService {
* @param isEscalated
* @return
*/
private
long
getEscalatedTicketsCount
(
Map
<
String
,
Object
>
filter
,
SearchDateRange
date
,
boolean
isEscalated
)
{
private
long
getEscalatedTicketsCount
(
Map
<
String
,
Object
>
filter
,
SearchDateRange
date
,
boolean
isEscalated
,
Boolean
isOpen
)
{
BoolQueryBuilder
esQuery
=
createESQuery
(
filter
,
date
);
if
(
isOpen
!=
null
&&
isOpen
.
booleanValue
())
{
esQuery
.
must
(
QueryBuilders
.
matchQuery
(
"status"
,
"OPEN"
));
}
// adding condition to filter escalated ticket
esQuery
.
must
(
QueryBuilders
.
matchQuery
(
"is_escalated_to_admin"
,
isEscalated
));
return
executeQueryForCount
(
esQuery
);
...
...
@@ -490,7 +493,7 @@ public class DashboardServiceImpl implements DashboardService {
// get total ticket count for provided filter and date range
long
totalTicketCount
=
getTotalTicketsCount
(
filter
,
date
);
// get total escalated ticket count
long
totalEscalatedTicketCount
=
getEscalatedTicketsCount
(
filter
,
date
,
true
);
long
totalEscalatedTicketCount
=
getEscalatedTicketsCount
(
filter
,
date
,
true
,
true
);
// get open ticket count
long
totalOpenTicketCount
=
getTicketCountByTicketStatus
(
filter
,
date
,
TicketStatus
.
OPEN
);
// get closed ticket count
...
...
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