1 2 3 4 5 6
|
Statement stmtAuthentification = connAuthentification.createStatement();
queryAuthentification = "EXEC rGUID";
queryAuthentification = "SELECT users.firstName , users.lastName FROM users,activity,company,ilanTspid WHERE users.company = company.id and users.login ='" +g.getLogin()+ "' and users.password ='"+g.getPassword()+"' and ilanTspid.company = company.id and ilanTspid.GILvalue='"+g.getIlan()+"' and activity.company = company.id and activity.activity='"+g.getActivity()+"';";
resultsAuthentification = stmtAuthentification.executeQuery(queryAuthentification);
g.setLogin(resultsAuthentification.getString("users.firstName")+resultsAuthentification.getString("users.lastName")); |