1. 환자 회원가입, 로그인 추가
2. 임직원 로그인 추가 3. 외래 or 입원, 건강검진 추가 예정
This commit is contained in:
@@ -43,7 +43,7 @@ public class UserJoinDao extends BasicDao {
|
||||
UserJoinVo vo = null;
|
||||
|
||||
try {
|
||||
this.psmt = this.conn.prepareStatement("SELECT * FROM user_tbl WHERE u_ID ='?' and u_psw ='?'");
|
||||
this.psmt = this.conn.prepareStatement("SELECT * FROM user_tbl WHERE u_ID =? and u_psw =?");
|
||||
//this.psmt = this.conn.prepareStatement("SELECT u_ID, u_psw FROM user_tbl");
|
||||
|
||||
// while(this.rs.next()) {
|
||||
@@ -55,12 +55,11 @@ public class UserJoinDao extends BasicDao {
|
||||
this.psmt.setString(2, member.getU_psw());
|
||||
this.rs = this.psmt.executeQuery();
|
||||
if (this.rs.next()) {
|
||||
// vo = new UserJoinVo();
|
||||
vo = new UserJoinVo();
|
||||
String id = this.rs.getString("u_ID");
|
||||
String pw = this.rs.getString("u_psw");
|
||||
vo = new UserJoinVo(id, pw); // 이거 왜 이러냐 개샤ㅐ끼야
|
||||
//vo.setU_ID(id);
|
||||
//vo.setU_psw(pw);
|
||||
vo.setU_ID(id);
|
||||
vo.setU_psw(pw);
|
||||
}
|
||||
} catch (SQLException var5) {
|
||||
var5.printStackTrace();
|
||||
|
||||
Reference in New Issue
Block a user