Commit f0f7789c authored by Rahul Panvalkar's avatar Rahul Panvalkar

Replace UserInvitationDAO.java

parent 0ecb8d0f
...@@ -714,6 +714,7 @@ public class UserInvitationDAO ...@@ -714,6 +714,7 @@ public class UserInvitationDAO
// To get registered Invitee Registration Information // To get registered Invitee Registration Information
String addr1 = "", addr2 = "", addr3 = "", city = "", stateCode = "", pin = "", tele1 = "", tele2 = "", tele3 = "", lob = ""; String addr1 = "", addr2 = "", addr3 = "", city = "", stateCode = "", pin = "", tele1 = "", tele2 = "", tele3 = "", lob = "";
String applicationPack = "";
sql = "Select * from user_registration where user_id= ?"; sql = "Select * from user_registration where user_id= ?";
pstmt = autConn.prepareStatement(sql); pstmt = autConn.prepareStatement(sql);
pstmt.setString(1, registerUserId); pstmt.setString(1, registerUserId);
...@@ -730,6 +731,7 @@ public class UserInvitationDAO ...@@ -730,6 +731,7 @@ public class UserInvitationDAO
tele2 = checkNull(rs.getString("TELE2")).trim(); tele2 = checkNull(rs.getString("TELE2")).trim();
tele3 = checkNull(rs.getString("TELE3")).trim(); tele3 = checkNull(rs.getString("TELE3")).trim();
lob = checkNull(rs.getString("LINE_OF_BUSINESS")).trim(); lob = checkNull(rs.getString("LINE_OF_BUSINESS")).trim();
applicationPack = checkNull(rs.getString("APPLICATION_PACK")).trim();
} }
pstmt.close(); pstmt.close();
...@@ -738,7 +740,7 @@ public class UserInvitationDAO ...@@ -738,7 +740,7 @@ public class UserInvitationDAO
rs = null; rs = null;
// Added by Rahul P. on 12-Mar-24 [To set HQ value to City] :: START // Added by Rahul P. on 12-Mar-24 [To set HQ value to City] :: START
BaseLogger.log("3",null,null,"addInviteUser >> stanCodeHQ :: " +stanCodeHQ); BaseLogger.log("3",null,null,"addInviteUser >> stanCodeHQ :: [" +stanCodeHQ+"] && applicationPack :: ["+applicationPack+"]");
if(!stanCodeHQ.isEmpty()) if(!stanCodeHQ.isEmpty())
{ {
city = stanCodeHQ; city = stanCodeHQ;
...@@ -747,8 +749,8 @@ public class UserInvitationDAO ...@@ -747,8 +749,8 @@ public class UserInvitationDAO
// Added by Rahul P. on 12-Mar-24 [To set HQ value to City] :: END // Added by Rahul P. on 12-Mar-24 [To set HQ value to City] :: END
BaseLogger.log("3",null,null,"----updated---" +lob); BaseLogger.log("3",null,null,"----updated---" +lob);
userSql = "INSERT INTO USER_REGISTRATION (USER_NAME,EMAIL_ID,CONTACT_NO,LAST_NAME,PASS_WD_SHA,USER_ID,SITE_CODE, ADDR1, ADDR2, ADDR3, CITY, STATE_CODE, PIN, TELE1, TELE2, TELE3, LINE_OF_BUSINESS)" userSql = "INSERT INTO USER_REGISTRATION (USER_NAME,EMAIL_ID,CONTACT_NO,LAST_NAME,PASS_WD_SHA,USER_ID,SITE_CODE, ADDR1, ADDR2, ADDR3, CITY, STATE_CODE, PIN, TELE1, TELE2, TELE3, LINE_OF_BUSINESS,APPLICATION_PACK)"
+ " VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"; + " VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
pstmt = autConn.prepareStatement(userSql); pstmt = autConn.prepareStatement(userSql);
pstmt.setString(1, inviteUser.getUserFirstName()); pstmt.setString(1, inviteUser.getUserFirstName());
...@@ -768,6 +770,7 @@ public class UserInvitationDAO ...@@ -768,6 +770,7 @@ public class UserInvitationDAO
pstmt.setString(15, tele2); pstmt.setString(15, tele2);
pstmt.setString(16, tele3); pstmt.setString(16, tele3);
pstmt.setString(17, lob); pstmt.setString(17, lob);
pstmt.setString(18, applicationPack);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
pstmt.close(); pstmt.close();
......
Markdown is supported
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