Commit 4ebdd76d authored by lakshmikommalapati's avatar lakshmikommalapati
Browse files

commit after made constan

 in TicketDaoImpl
Showing with 4 additions and 2 deletions
+4 -2
......@@ -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<>();
......
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment