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-service
Commits
4ebdd76d
Commit
4ebdd76d
authored
1 year ago
by
lakshmikommalapati
Browse files
Options
Download
Patches
Plain Diff
commit after made constan
in TicketDaoImpl
parent
714d9a4c
github/fork/rahulbowade/feature_ticket_creation
feature_ticket_creation
1 merge request
!8
Grievance raise ticket
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/org/upsmf/grievance/dao/impl/TicketDaoImpl.java
+2
-2
...main/java/org/upsmf/grievance/dao/impl/TicketDaoImpl.java
src/main/java/org/upsmf/grievance/util/Constants.java
+2
-0
src/main/java/org/upsmf/grievance/util/Constants.java
with
4 additions
and
2 deletions
+4
-2
src/main/java/org/upsmf/grievance/dao/impl/TicketDaoImpl.java
+
2
−
2
View file @
4ebdd76d
...
...
@@ -426,7 +426,7 @@ public class TicketDaoImpl implements TicketDao {
}
public
String
genText
()
{
String
randomText
=
"abcdefghijklmnopqrstuvwxyz123456789"
;
String
randomText
=
Constants
.
RANDOM
;
int
length
=
5
;
return
RandomStringUtils
.
random
(
length
,
randomText
);
}
...
...
@@ -452,7 +452,7 @@ public class TicketDaoImpl implements TicketDao {
private
void
sendTicketEmailVal
(
Ticket
ticket
,
String
recipientEmail
)
{
try
{
DateTimeFormatter
dateTimeFormatter
=
DateTimeFormatter
.
ofPattern
(
"dd/MM/YYYY"
);
DateTimeFormatter
dateTimeFormatter
=
DateTimeFormatter
.
ofPattern
(
DateUtil
.
DEFAULT_DATE_FORMAT
);
User
user
=
superAdminDao
.
userDetailsByUserId
(
ticket
.
getRequestedBy
());
user
.
setOrgId
(
MasterDataManager
.
getUserOrgMap
().
get
(
ticket
.
getRequestedBy
()));
Map
<
String
,
String
>
keyValue
=
new
HashMap
<>();
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/upsmf/grievance/util/Constants.java
+
2
−
0
View file @
4ebdd76d
...
...
@@ -333,6 +333,8 @@ public class Constants {
public
static
final
String
RATE
=
"rate"
;
public
static
final
String
DESCRIPTION
=
"description"
;
public
static
final
String
RANDOM
=
"abcdefghijklmnopqrstuvwxyz123456789"
;
private
static
final
String
[]
INCLUDE_FIELDS
=
new
String
[]
{
ID
,
STATUS
,
TOTAL
,
DESCRIPTION
,
PINNED_TICKET
,
REQUESTED_BY
,
HELPDESK_ID
,
UPDATED_TIME
,
CREATED_TIME
,
U_T
,
C_T
};
private
static
final
String
[]
EXCLUDE_FIELDS
=
new
String
[]
{
OS_VERSION
,
OS_TYPE
,
DEVICE_TYPE
,
DEVICE_LOCALE
,
...
...
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